Sha256: 2c0c6c9cdaeb0804b6f6210999793c0677a03dceda576ffc89165b8a0bb33fa1

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 KB

Contents

# Benchmarks

Some benchmarks, run on an ancient Thinkpad running Intel Core 2 Duo at 2GHz.

|Implementation     |  Time (sec)|
|-------------------|-----------:|
| Markdown.pl       | 2921.24    |
| Python markdown   |  291.25    |
| PHP markdown      |   20.82    |
| kramdown          |   17.32    |
| cheapskate        |    8.24    |
| peg-markdown      |    5.45    |
| parsedown         |    5.06    |
| marked            |    1.94    |
| **commonmark.js** |    1.93    |
| discount          |    1.86    |
| sundown           |    0.33    |
| **cmark**         |    0.33    |


To run these benchmarks, use `make bench PROG=/path/to/program`.

The input text is a 11MB Markdown file built by concatenating the
Markdown sources of all the localizations of the first edition of
[*Pro Git*](https://github.com/progit/progit/tree/master/en) by Scott Chacon.

`time` is used to measure execution speed.  The reported
time is the *difference* between the time to run the program
with the benchmark input and the time to run it with no input.
(This procedure ensures that implementations in dynamic languages are
not penalized by startup time.) A median of ten runs is taken.  The
process is reniced to a high priority so that the system doesn't
interrupt runs.

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commonmarker-0.1.3 ext/commonmarker/cmark/benchmarks.md
commonmarker-0.1.2 ext/commonmarker/cmark/benchmarks.md
commonmarker-0.1.1 ext/commonmarker/cmark/benchmarks.md
commonmarker-0.1.0 ext/commonmarker/cmark/benchmarks.md
commonmarker-0.0.1 ext/commonmarker/cmark/benchmarks.md