Browse Source

Added benchmarks for different remarkable modes

pull/14/head
Vitaly Puzrin 10 years ago
parent
commit
01008da830
  1. 8
      benchmark/implementations/current-commonmark/index.js
  2. 9
      benchmark/implementations/current/index.js

8
benchmark/implementations/current-commonmark/index.js

@ -0,0 +1,8 @@
'use strict'
var Remarkable = require('../../../');
var md = new Remarkable('commonmark');
exports.run = function(data) {
return md.render(data);
}

9
benchmark/implementations/current/index.js

@ -1,12 +1,11 @@
'use strict' 'use strict'
var Remarkable = require('../../../'); var Remarkable = require('../../../');
var md = new Remarkable('commonmark' /*{ var md = new Remarkable({
html: true, html: true,
xhtml: true, linkify: true,
breaks: false, typographer: true
langPrefix: 'language-' });
}*/);
exports.run = function(data) { exports.run = function(data) {
return md.render(data); return md.render(data);

Loading…
Cancel
Save