Skip to content

Commit 6f14040

Browse files
committed
Update benchmarks. Closes #338.
1 parent 3253e19 commit 6f14040

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ progit:
167167
$(BENCHFILE): progit
168168
echo "" > $@
169169
for lang in ar az be ca cs de en eo es es-ni fa fi fr hi hu id it ja ko mk nl no-nb pl pt-br ro ru sr th tr uk vi zh zh-tw; do \
170-
for i in `seq 1 10`; do \
171-
cat progit/$$lang/*/*.markdown >> $@; \
172-
done; \
170+
cat progit/$$lang/*/*.markdown >> $@; \
173171
done
174172

175173
# for more accurate results, run with

benchmarks.md

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
# Benchmarks
22

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.
3+
Here are some benchmarks, run on a 2.3GHz 8-core i9 macbook pro.
4+
The input text is a 1106 KB Markdown file built by concatenating
5+
the Markdown sources of all the localizations of the first edition
6+
of [*Pro Git*](https://github.com/progit/progit/tree/master/en) by
7+
Scott Chacon.
98

109
|Implementation | Time (sec)|
1110
|-------------------|-----------:|
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 |
11+
| **commonmark.js** | 0.59 |
12+
| **cmark** | 0.12 |
13+
| **md4c** | 0.04 |
2414

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

0 commit comments

Comments
 (0)