cmark
My personal build of CMark ✏️
benchmarks.md (1270B)
1 # Benchmarks 2 3 Here are some benchmarks, run on an ancient Thinkpad running Intel 4 Core 2 Duo at 2GHz. The input text is a 11MB Markdown file built by 5 concatenating the Markdown sources of all the localizations of the 6 first edition of 7 [*Pro Git*](https://github.com/progit/progit/tree/master/en) by Scott 8 Chacon. 9 10 |Implementation | Time (sec)| 11 |-------------------|-----------:| 12 | Markdown.pl | 2921.24 | 13 | Python markdown | 291.25 | 14 | PHP markdown | 20.82 | 15 | kramdown | 17.32 | 16 | cheapskate | 8.24 | 17 | peg-markdown | 5.45 | 18 | parsedown | 5.06 | 19 | **commonmark.js** | 2.09 | 20 | marked | 1.99 | 21 | discount | 1.85 | 22 | **cmark** | 0.29 | 23 | hoedown | 0.21 | 24 25 To run these benchmarks, use `make bench PROG=/path/to/program`. 26 27 `time` is used to measure execution speed. The reported 28 time is the *difference* between the time to run the program 29 with the benchmark input and the time to run it with no input. 30 (This procedure ensures that implementations in dynamic languages are 31 not penalized by startup time.) A median of ten runs is taken. The 32 process is reniced to a high priority so that the system doesn't 33 interrupt runs.