diff --git a/test/benchmark/bench.js b/test/benchmark/bench.js index 53dfbb4..6a50a93 100755 --- a/test/benchmark/bench.js +++ b/test/benchmark/bench.js @@ -6,6 +6,7 @@ const Path = require('path') const commonmark = require('commonmark') const Showdown = require('showdown') const marked = require('marked') +const { Remarkable } = require('remarkable'); const markdownit = require('markdown-it')('commonmark') const markdown_wasm = require('../../dist/markdown.node.js') @@ -22,6 +23,9 @@ var showdown = new Showdown.Converter() var parser = new commonmark.Parser() var renderer = new commonmark.HtmlRenderer() +// setup remarkable +var remarkable = new Remarkable(); + // parse CLI input let filename = process.argv[2] if (!filename) { @@ -76,6 +80,9 @@ function benchmarkFile(benchfile) { .add('marked', function() { marked(contents); }) + .add('remarkable', function() { + remarkable.render(contents); + }) .add('markdown-it', function() { markdownit.render(contents); }) diff --git a/test/benchmark/package.json b/test/benchmark/package.json index 4112f42..3ef52a4 100644 --- a/test/benchmark/package.json +++ b/test/benchmark/package.json @@ -18,6 +18,7 @@ "d3-node": "^2.2.2", "markdown-it": "^10.0.0", "marked": "^0.7.0", + "remarkable": "^2.0.1", "showdown": "^1.9.1", "svgo": "^1.3.2" }