Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Markdown Performance Comparison Redux
(version: 0)
A performance comparison of leading Javascript Markdown implementations.
Comparing performance of:
Marked vs CommonMark vs Markdown-it vs Remarkable vs Micromarkdown vs Snarkdown vs markdown-wasm
Created:
4 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<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://lukeuser.cacus.feralhosting.com/markdown.js"></script>
Script Preparation code:
var conv = { marked: marked, cm: new commonmark.HtmlRenderer(), mdit: markdownit({ html: true }), remarkable: new remarkable.Remarkable(), micromarkdown: window.micromarkdown, snarkdown: window.snarkdown, markdown: window.markdown }; var pars = { cm: new commonmark.Parser() }; function md() { return "# 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."}
Tests:
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(),true);
Snarkdown
conv.snarkdown(md());
markdown-wasm
try {conv.markdown.parse(md());} catch {}
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (7)
Previous results
Fork
Test case name
Result
Marked
CommonMark
Markdown-it
Remarkable
Micromarkdown
Snarkdown
markdown-wasm
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):
I'll break down the benchmark and explain what's being tested. **Benchmark Overview** The benchmark is designed to compare the performance of different Markdown parsers in JavaScript. The test focuses on the parsing time for Markdown text, specifically the conversion from Markdown input to HTML output. **Test Cases** There are seven test cases: 1. **Marked**: This test case uses the Marked library to parse and render the Markdown text. 2. **CommonMark**: This test case uses the CommonMark library to parse and render the Markdown text. 3. **Markdown-it**: This test case uses the Markdown-it library to parse and render the Markdown text. 4. **Remarkable**: This test case uses the Remarkable library to parse and render the Markdown text. 5. **Micromarkdown**: This test case uses the Micromarkdown library to parse and render the Markdown text. 6. **Snarkdown**: This test case uses the Snarkdown library to parse and render the Markdown text. 7. **markdown-wasm**: This test case tries to use the Markdown-wasm library, which is a WebAssembly-based Markdown parser. **Libraries and Their Purposes** * **Marked**: A JavaScript library for converting Markdown text to HTML. It's a simple and lightweight library that provides a basic implementation of Markdown parsing. * **CommonMark**: A JavaScript library for parsing Markdown text based on the CommonMark specification. It's designed to be fast and efficient, making it suitable for large-scale applications. * **Markdown-it**: A JavaScript library for converting Markdown text to HTML. It's a feature-rich library that provides many extensions and plugins for customizing Markdown rendering. * **Remarkable**: A JavaScript library for converting Markdown text to HTML, with a focus on readability and ease of use. It's designed to be fast and efficient, making it suitable for large-scale applications. * **Micromarkdown**: A lightweight JavaScript library for converting Markdown text to HTML. It's designed to be simple and easy to use, making it suitable for small-scale applications or projects with limited resources. * **Snarkdown**: A JavaScript library for converting Markdown text to HTML, with a focus on speed and efficiency. It's designed to be fast and lightweight, making it suitable for large-scale applications. * **Markdown-wasm**: A WebAssembly-based Markdown parser that runs in the browser without the need for a JavaScript runtime. **Other Considerations** When choosing a Markdown parser, consider the following factors: * **Performance**: If you're working on a large-scale application or need to handle a high volume of Markdown text, choose a library that's optimized for performance. * **Feature richness**: If you need advanced features like syntax highlighting or tables, consider using a feature-rich library like Markdown-it. * **Ease of use**: If you're new to Markdown or want a simple solution, consider using a lightweight library like Micromarkdown. * **Browser support**: If you need to support older browsers, ensure that your chosen library is compatible with those versions. Overall, this benchmark provides a good starting point for comparing the performance and features of different Markdown parsers in JavaScript.
Related benchmarks:
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?