Test name | Executions per second |
---|---|
Marked | 24104.2 Ops/sec |
CommonMark | 12577.4 Ops/sec |
Markdown-it | 43198.7 Ops/sec |
Remarkable | 67889.7 Ops/sec |
Micromarkdown | 78743.9 Ops/sec |
Snarkdown | 36917.9 Ops/sec |
<script type="text/javascript" src="https://unpkg.com/marked@1.1.0/marked.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/commonmark@0.29.1/dist/commonmark.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/markdown-it@11.0.0/dist/markdown-it.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/remarkable@2.0.1/dist/remarkable.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/micromarkdown@0.3.0/dist/micromarkdown.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/snarkdown@1.2.2/dist/snarkdown.umd.js"></script>
var conv = {
marked: marked,
cm: new commonmark.HtmlRenderer(),
mdit: markdownit({ html: true }),
remarkable: new remarkable.Remarkable(),
micromarkdown: window.micromarkdown,
snarkdown: window.snarkdown,
};
var pars = {
cm: new commonmark.Parser()
};
var md = "# The Static, Static Blog Generator\n\n### May 17th, 2014\n\nWe all like publishing our thoughts online - but why is it such a bother to run a CMS?\n\nManaging databases, `updating` software, and keeping track of our *content* often cuts into the most important activity: *expressing ourselves*.\n\nThe web makes it really __easy to share__ our thoughts with millions of __individuals__ from around the world.";
conv.marked(md);
conv.cm.render(pars.cm.parse(md));
conv.mdit.render(md);
conv.remarkable.render(md);
conv.micromarkdown.parse(md);
conv.snarkdown(md);