summaryrefslogtreecommitdiff
path: root/benchmarks.md
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-11-17 17:57:23 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-11-17 17:58:13 -0800
commit05d730a32b47ae3343479b35eb4a1d3448a5fc13 (patch)
treecd06bec7b5ca0792c6dad8151be35cacfb8d8573 /benchmarks.md
parent0655c79138d3115f12b08fb4d38d164c3b8482eb (diff)
Put benchmarks in separate benchmarks.md file.
Diffstat (limited to 'benchmarks.md')
-rw-r--r--benchmarks.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/benchmarks.md b/benchmarks.md
new file mode 100644
index 0000000..9a079c9
--- /dev/null
+++ b/benchmarks.md
@@ -0,0 +1,23 @@
+# Benchmarks
+
+Some benchmarks, run on an ancient Thinkpad running Intel Core 2 Duo at 2GHz.
+
+|Implementation | Time (sec)| Factor|
+|---------------|------------|-------|
+| Markdown.pl | 2921.30 | 14606 |
+| PHP markdown | 20.475 | 102.4 |
+| peg-markdown | 5.330 | 26.7 |
+| commonmark.js | 2.730 | 13.6 |
+| marked | 1.870 | 9.4 |
+| discount | 1.660 | 8.3 |
+| cmark | 0.290 | 1.4 |
+| sundown | 0.200 | 1.0 |
+
+To run these benchmarks, use `make bench PROG=/path/to/program`.
+
+The input text is a 10MB Markdown file built by concatenating 20 copies
+of the Markdown source 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.
+