Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Markdown Performance Comparison June 5th 2023
(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 vs markdown-wasm-alt
Created:
2 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script type="text/javascript" src="https://unpkg.com/marked@5.0.4/marked.min.js"></script> <script type="text/javascript" src="https://unpkg.com/commonmark@0.30.0/dist/commonmark.min.js"></script> <script type="text/javascript" src="https://unpkg.com/markdown-it@13.0.1/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.4-a/dist/micromarkdown.min.js"></script> <script type="text/javascript" src="https://unpkg.com/snarkdown@2.0.0/dist/snarkdown.umd.js"></script> <script type="text/javascript" src="https://lukeuser.cacus.feralhosting.com/markdown.js"></script> <script type="text/javascript" src="https://lukeuser.cacus.feralhosting.com/markdown.altw.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, markdownaltw: window.markdownaltw }; 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.parse(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 {markdown.parse(md());} catch {}
markdown-wasm-alt
try {markdownaltw.parse(md());} catch {}
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (8)
Previous results
Fork
Test case name
Result
Marked
CommonMark
Markdown-it
Remarkable
Micromarkdown
Snarkdown
markdown-wasm
markdown-wasm-alt
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):
**Overview** MeasureThat.net is a website that allows users to create and run JavaScript microbenchmarks, comparing the performance of different Markdown implementations. In this explanation, we'll break down what's being tested on the provided JSON data. **Benchmark Comparison** The benchmark compares six Markdown libraries: 1. Marked 2. CommonMark 3. Markdown-it 4. Remarkable 5. Micromarkdown 6. Snarkdown Each library is compared to its own "wasm" version (markdown-wasm and markdownaltw). The "wasm" versions are likely compiled versions of the libraries for web use. **Options Compared** The options being compared are: * **Parsing**: Each Markdown library is tested with a specific parser: + CommonMark: `new CommonMark.Parser(input)`. + Marked: `marked.parse(input)`. + Markdown-it: `markdownit.markdownit.parser(input)`. + Remarkable: `remark().parse(input)`. + Micromarkdown: `micromark(markdown, input)`. + Snarkdown: `snarkdown(input)`. * **Rendering**: Each library is tested with a rendered output: + Each library is used to render the same Markdown input, and the execution time is measured. **Browsers and Platforms** The benchmark runs on Chrome 117 (version 114.0.0.0) across various platforms: * Windows * Desktop Each browser/platform combination measures the executions per second for each Markdown library. **What's Being Asked** To answer this question, we need to know: **"Which Markdown library is fastest?"**
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?