Browse Source

Updated deps & benchmarks

pull/48/head
Vitaly Puzrin 9 years ago
parent
commit
4d6ec19d09
  1. 8
      README.md
  2. 2
      benchmark/implementations/commonmark-reference/index.js
  3. 12
      package.json

8
README.md

@ -212,10 +212,10 @@ Selected samples: (1 of 27)
> spec
Sample: spec.txt (110610 bytes)
> commonmark-reference x 60.70 ops/sec ±7.76% (61 runs sampled)
> current x 80.00 ops/sec ±2.03% (68 runs sampled)
> current-commonmark x 103 ops/sec ±0.72% (76 runs sampled)
> marked-0.3.2 x 22.65 ops/sec ±3.07% (41 runs sampled)
> commonmark-reference x 68.63 ops/sec ±6.53% (72 runs sampled)
> current x 79.62 ops/sec ±3.22% (80 runs sampled)
> current-commonmark x 103 ops/sec ±1.10% (76 runs sampled)
> marked-0.3.2 x 23.14 ops/sec ±1.66% (42 runs sampled)
```
As you can see, `markdown-it` doesn't pay with speed for it's flexibility.

2
benchmark/implementations/commonmark-reference/index.js

@ -1,7 +1,7 @@
'use strict';
var commonmark = require('commonmark');
var parser = new commonmark.DocParser();
var parser = new commonmark.Parser();
var renderer = new commonmark.HtmlRenderer();
exports.run = function(data) {

12
package.json

@ -28,16 +28,16 @@
},
"devDependencies": {
"ansi": "~0.3.0",
"autoprefixer-stylus": "~0.4.0",
"autoprefixer-stylus": "~0.5.0",
"benchmark": "~1.0.0",
"browserify": "*",
"chai": "~1.10.0",
"commonmark": "~ 0.16.0",
"commonmark": "~ 0.17.1",
"coveralls": "~2.11.2",
"eslint": "0.11.0",
"eslint": "0.13.0",
"eslint-plugin-nodeca": "^1.0.0",
"istanbul": "*",
"jade": "~1.8.2",
"jade": "~1.9.2",
"markdown-it-abbr": "~ 0.1.0",
"markdown-it-deflist": "~ 0.1.0",
"markdown-it-emoji": "~ 0.1.3",
@ -48,8 +48,8 @@
"markdown-it-sub": "~ 0.1.0",
"markdown-it-sup": "~ 0.1.0",
"markdown-it-testgen": "~ 0.1.3",
"marked": "0.3.2",
"stylus": "~0.49.3",
"marked": "0.3.3",
"stylus": "~0.50.0",
"mocha": "*",
"uglify-js": "*"
}

Loading…
Cancel
Save