diff options
Diffstat (limited to 'js/bench.js')
-rw-r--r-- | js/bench.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/bench.js b/js/bench.js index 3c486b1..d068a7e 100644 --- a/js/bench.js +++ b/js/bench.js @@ -1,19 +1,19 @@ var Benchmark = require('benchmark').Benchmark; var suite = new Benchmark.Suite; var fs = require('fs'); -var sm = require('./stmd'); +var sm = require('./lib/index.js'); // https://github.com/coreyti/showdown var showdown = require('../../showdown/src/showdown'); // https://github.com/chjj/marked var marked = require('../../marked/marked.min.js'); -var benchfile = process.argv[2] || 'oldtests/Original/Markdown_Documentation_Syntax.markdown'; +var benchfile = process.argv[2]; var contents = fs.readFileSync(benchfile, 'utf8'); // var converter = new showdown.converter(); -suite.add('stmd markdown->html', function() { +suite.add('commonmark.js markdown->html', function() { var doc = new sm.DocParser().parse(contents); var renderer = new sm.HtmlRenderer(); renderer.renderBlock(doc); |