Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
My Markdown Performance Comparison
(version: 0)
A performance comparison of leading Javascript Markdown implementations.
Comparing performance of:
Showdown.js vs Marked vs CommonMark vs Markdown-it vs Remarkable vs Micromarkdown vs Snarkdown vs reMarked.js vs markdown-js
Created:
4 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script type="text/javascript" src="https://unpkg.com/showdown@1.9.1/dist/showdown.min.js"></script> <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> <script type="text/javascript" src="https://leeoniya.github.io/reMarked.js/reMarked.js"></script> <script type="text/javascript" src="https://lukeuser.cacus.feralhosting.com/markdown.min.js"></script>
Script Preparation code:
var conv = { showdown: new showdown.Converter(), marked: marked, cm: new commonmark.HtmlRenderer(), mdit: markdownit({ html: true }), remarkable: new remarkable.Remarkable(), micromarkdown: window.micromarkdown, snarkdown: window.snarkdown, remarker: new reMarked(), markdown: window.markdown }; 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. With it we are *able to talk* about the things we love.\n\nOnline publishing platform have a problem though - they [require](https://1993.uk) certain software to be installed on web servers in order to work. This often means running your own server or paying someone else who will setup the [required](https://1993.uk) parts for you.\n\nAfter you setup the system, constant updates are required to make sure that any bugs in the software you are running are patched [immediately](https://1993.uk) to prevent your *site* from being hacked. This __often means__ having a recent backup of your data", ""].join("\n");
Tests:
Showdown.js
conv.showdown.makeHtml(md);
Marked
conv.marked(md);
CommonMark
conv.cm.render(pars.cm.parse(md));
Markdown-it
conv.mdit.render(md);
Remarkable
conv.remarkable.render(md);
Micromarkdown
conv.micromarkdown.parse(md);
Snarkdown
conv.snarkdown(md);
reMarked.js
conv.remarker.render(md);
markdown-js
conv.markdown.toHTML(md);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (9)
Previous results
Fork
Test case name
Result
Showdown.js
Marked
CommonMark
Markdown-it
Remarkable
Micromarkdown
Snarkdown
reMarked.js
markdown-js
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
Let's dive into the world of Markdown performance comparisons. **Benchmark Overview** The benchmark measures the execution speed of various Markdown parsers on different browsers and devices. The test converts a sample Markdown text into HTML, and the time it takes to execute is recorded. **Markdown Parsers Compared** The benchmark compares eight Markdown parsers: 1. **reMarked.js**: A JavaScript-based Markdown parser 2. **Micromarkdown**: A lightweight JavaScript-based Markdown parser 3. **Snarkdown**: A JavaScript-based Markdown parser 4. **Remarkable**: A JavaScript-based Markdown parser (not included in the latest results, but mentioned in the previous benchmark) 5. **markdown-js**: A pure JavaScript Markdown parser 6. **CommonMark**: A standardized Markdown parser that can be used with various programming languages 7. **Markdown-it**: A JavaScript-based Markdown parser with additional features 8. **Showdown.js**: A JavaScript-based Markdown parser **Results Analysis** The latest benchmark results show the execution speed of each Markdown parser on a desktop device running Firefox 89. The results are sorted by the number of executions per second, with the fastest parser at the top. * **reMarked.js**: 2,602 executions per second (Fastest) * **Micromarkdown**: 2,056 executions per second * **Snarkdown**: 1,608 executions per second * **Remarkable**: Not included in the latest results, but mentioned as a competitor * **markdown-js**: 4,600 executions per second (Slowest) * **CommonMark**: 7,140 executions per second * **Markdown-it**: 8,360 executions per second * **Showdown.js**: 2,398 executions per second **Performance Comparison** Based on the results, the following observations can be made: * **reMarked.js**, **Micromarkdown**, and **Snarkdown** are relatively fast, with execution speeds similar to or faster than each other. * **Markdown-it** and **CommonMark** are significantly faster than the other parsers, indicating their efficiency in converting Markdown to HTML. * **remarkable** is not included in the latest results, but it was mentioned as a competitor. This suggests that it may be slower than the other parsers or not optimized for the specific use case. Keep in mind that these results are specific to a desktop device running Firefox 89 and may not reflect performance on other platforms or browsers. Overall, the benchmark provides valuable insights into the performance characteristics of various Markdown parsers, helping developers choose the best one for their needs.
Related benchmarks:
Markdown Performance Comparison 4
Markdown Performance Comparison 13
Markdown Performance Comparison 18
Markdown Performance Comparison 22
Markdown Performance Comparison 14
Comments
Confirm delete:
Do you really want to delete benchmark?