Last active
June 28, 2017 20:18
-
-
Save michaeljklein/24be9de8b8450893d12e2b9853ccc3a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These benchmarks take about 45 minutes to run and perform a total of ~350k conversion (on my machine). | |
Here is the only significant win by pandoc-ruby: | |
Calculating ------------------------------------- | |
from: latex, to: latex, file: bomb.tex, pandoc_rb | |
0.020 (± 0.0%) i/s - 1.000 in 49.770525s | |
from: latex, to: latex, file: bomb.tex, pandoc-ruby (read file) | |
21.586 (± 3.4%) i/s - 104.000 in 5.025571s | |
from: latex, to: latex, file: bomb.tex, pandoc-ruby | |
21.634 (± 4.3%) i/s - 104.000 in 5.063610s | |
Comparison: | |
from: latex, to: latex, file: bomb.tex, pandoc-ruby : 21.6 i/s | |
from: latex, to: latex, file: bomb.tex, pandoc-ruby (read file): 21.6 i/s - same-ish: difference falls within error | |
from: latex, to: latex, file: bomb.tex, pandoc_rb : 0.0 i/s - 1077.75x (± 46.31) slower | |
It seems that pandoc-ruby skips converting if the input and output formats are equal. | |
Even then, `pandoc_rb` handles this pathological case rather well. | |
from: markdown, to: markdown, file: benchmark.txt | |
pandoc_rb : 29.5 i/s | |
pandoc-ruby (read file): 11.9 i/s - 2.48x (± 0.09) slower | |
pandoc-ruby : 11.4 i/s - 2.59x (± 0.13) slower | |
from: markdown, to: latex , file: benchmark.txt | |
pandoc_rb : 31.9 i/s | |
pandoc-ruby : 13.6 i/s - 2.35x (± 0.12) slower | |
pandoc-ruby (read file): 13.3 i/s - 2.39x (± 0.08) slower | |
from: markdown, to: html , file: benchmark.txt | |
pandoc_rb : 31.3 i/s | |
pandoc-ruby (read file): 13.0 i/s - 2.41x (± 0.06) slower | |
pandoc-ruby : 11.9 i/s - 2.63x (± 0.14) slower | |
from: markdown, to: docx , file: benchmark.txt | |
pandoc_rb : 12.2 i/s | |
pandoc-ruby : 8.0 i/s - 1.52x (± 0.09) slower | |
pandoc-ruby (read file): 6.8 i/s - 1.79x (± 0.15) slower | |
from: markdown, to: markdown, file: format.markdown | |
pandoc_rb : 1174.1 i/s | |
pandoc-ruby (read file): 32.0 i/s - 36.73x (± 1.68) slower | |
pandoc-ruby : 25.5 i/s - 46.10x (± 4.77) slower | |
from: markdown, to: latex , file: format.markdown | |
pandoc_rb : 1280.6 i/s | |
pandoc-ruby : 32.4 i/s - 39.60x (± 1.20) slower | |
pandoc-ruby (read file): 31.7 i/s - 40.44x (± 1.95) slower | |
from: markdown, to: html , file: format.markdown | |
pandoc_rb : 1564.2 i/s | |
pandoc-ruby (read file): 30.7 i/s - 50.89x (± 3.21) slower | |
pandoc-ruby : 26.8 i/s - 58.28x (± 6.60) slower | |
from: markdown, to: docx , file: format.markdown | |
pandoc_rb : 21.1 i/s | |
pandoc-ruby : 13.5 i/s - 1.57x (± 0.07) slower | |
pandoc-ruby (read file): 13.3 i/s - 1.59x (± 0.10) slower | |
from: markdown, to: markdown, file: large_markdown.md | |
pandoc_rb : 17.1 i/s | |
pandoc-ruby : 7.8 i/s - 2.20x (± 0.07) slower | |
pandoc-ruby (read file): 7.0 i/s - 2.43x (± 0.13) slower | |
from: markdown, to: latex , file: large_markdown.md | |
pandoc_rb : 19.0 i/s | |
pandoc-ruby (read file): 7.9 i/s - 2.41x (± 0.09) slower | |
pandoc-ruby : 7.5 i/s - 2.54x (± 0.08) slower | |
from: markdown, to: html , file: large_markdown.md | |
pandoc_rb : 21.6 i/s | |
pandoc-ruby (read file): 8.0 i/s - 2.70x (± 0.09) slower | |
pandoc-ruby : 7.5 i/s - 2.89x (± 0.08) slower | |
from: markdown, to: docx , file: large_markdown.md | |
pandoc_rb : 1.6 i/s | |
pandoc-ruby (read file): 1.4 i/s - same-ish: difference falls within error | |
pandoc-ruby : 1.3 i/s - same-ish: difference falls within error | |
from: markdown, to: markdown, file: test.md | |
pandoc_rb : 1352.0 i/s | |
pandoc-ruby : 31.8 i/s - 42.59x (± 1.84) slower | |
pandoc-ruby (read file): 29.0 i/s - 46.62x (± 2.28) slower | |
from: markdown, to: latex , file: test.md | |
pandoc_rb : 1542.0 i/s | |
pandoc-ruby (read file): 31.5 i/s - 48.91x (± 1.37) slower | |
pandoc-ruby : 30.3 i/s - 50.87x (± 1.96) slower | |
from: markdown, to: html , file: test.md | |
pandoc_rb : 1529.1 i/s | |
pandoc-ruby (read file): 29.7 i/s - 51.51x (± 3.86) slower | |
pandoc-ruby : 22.4 i/s - 68.23x (± 10.61) slower | |
from: markdown, to: docx , file: test.md | |
pandoc_rb : 26.9 i/s | |
pandoc-ruby (read file): 14.1 i/s - 1.90x (± 0.07) slower | |
pandoc-ruby : 13.4 i/s - 2.00x (± 0.10) slower | |
from: markdown, to: markdown, file: test2.md | |
pandoc_rb : 9590.9 i/s | |
pandoc-ruby : 34.1 i/s - 280.82x (± 6.15) slower | |
pandoc-ruby (read file): 33.1 i/s - 290.05x (± 9.12) slower | |
from: markdown, to: latex , file: test2.md | |
pandoc_rb : 9822.3 i/s | |
pandoc-ruby : 33.7 i/s - 291.09x (± 7.74) slower | |
pandoc-ruby (read file): 33.6 i/s - 292.72x (± 7.67) slower | |
from: markdown, to: html , file: test2.md | |
pandoc_rb : 11112.9 i/s | |
pandoc-ruby : 33.0 i/s - 336.74x (± 9.14) slower | |
pandoc-ruby (read file): 31.5 i/s - 353.35x (± 8.73) slower | |
from: markdown, to: docx , file: test2.md | |
pandoc_rb : 27.5 i/s | |
pandoc-ruby : 14.3 i/s - 1.92x (± 0.07) slower | |
pandoc-ruby (read file): 14.0 i/s - 1.96x (± 0.06) slower | |
from: latex , to: markdown, file: bomb.tex | |
pandoc-ruby : 0.0 i/s | |
pandoc-ruby (read file): 0.0 i/s - 1.02x (± 0.00) slower | |
pandoc_rb : 0.0 i/s - 1.03x (± 0.00) slower | |
from: latex , to: html , file: bomb.tex | |
pandoc-ruby : 0.0 i/s | |
pandoc-ruby (read file): 0.0 i/s - 1.01x (± 0.00) slower | |
pandoc_rb : 0.0 i/s - 1.04x (± 0.00) slower | |
from: latex , to: docx , file: bomb.tex | |
pandoc-ruby (read file): 0.0 i/s | |
pandoc-ruby : 0.0 i/s - 1.01x (± 0.00) slower | |
pandoc_rb : 0.0 i/s - 1.01x (± 0.00) slower | |
from: latex , to: markdown, file: format.latex | |
pandoc_rb : 3978.3 i/s | |
pandoc-ruby : 32.3 i/s - 123.33x (± 5.54) slower | |
pandoc-ruby (read file): 30.2 i/s - 131.80x (± 6.76) slower | |
from: latex , to: latex , file: format.latex | |
pandoc_rb : 4425.6 i/s | |
pandoc-ruby (read file): 30.2 i/s - 146.52x (± 8.56) slower | |
pandoc-ruby : 29.0 i/s - 152.35x (± 12.83) slower | |
from: latex , to: html , file: format.latex | |
pandoc_rb : 5584.3 i/s | |
pandoc-ruby : 29.5 i/s - 188.97x (± 13.30) slower | |
pandoc-ruby (read file): 25.4 i/s - 219.50x (± 21.60) slower | |
from: latex , to: docx , file: format.latex | |
pandoc_rb : 27.3 i/s | |
pandoc-ruby : 13.3 i/s - 2.05x (± 0.12) slower | |
pandoc-ruby (read file): 12.5 i/s - 2.18x (± 0.19) slower | |
from: org , to: markdown, file: format.org | |
pandoc_rb : 948.0 i/s | |
pandoc-ruby : 21.7 i/s - 43.69x (± 0.93) slower | |
pandoc-ruby (read file): 20.9 i/s - 45.36x (± 1.39) slower | |
from: org , to: latex , file: format.org | |
pandoc_rb : 956.7 i/s | |
pandoc-ruby : 22.4 i/s - 42.65x (± 1.11) slower | |
pandoc-ruby (read file): 21.5 i/s - 44.48x (± 1.81) slower | |
from: org , to: html , file: format.org | |
pandoc_rb : 1038.2 i/s | |
pandoc-ruby (read file): 21.0 i/s - 49.49x (± 1.39) slower | |
pandoc-ruby : 18.0 i/s - 57.58x (± 4.09) slower | |
from: org , to: docx , file: format.org | |
pandoc_rb : 24.9 i/s | |
pandoc-ruby (read file): 12.7 i/s - 1.96x (± 0.09) slower | |
pandoc-ruby : 12.6 i/s - 1.97x (± 0.14) slower | |
from: rst , to: markdown, file: format.rst | |
pandoc_rb : 930.7 i/s | |
pandoc-ruby (read file): 20.8 i/s - 44.79x (± 1.83) slower | |
pandoc-ruby : 20.2 i/s - 46.21x (± 2.30) slower | |
from: rst , to: latex , file: format.rst | |
pandoc_rb : 953.6 i/s | |
pandoc-ruby (read file): 22.5 i/s - 42.45x (± 1.41) slower | |
pandoc-ruby : 21.3 i/s - 44.86x (± 2.50) slower | |
from: rst , to: html , file: format.rst | |
pandoc_rb : 1007.4 i/s | |
pandoc-ruby (read file): 20.8 i/s - 48.51x (± 1.64) slower | |
pandoc-ruby : 19.5 i/s - 51.71x (± 3.20) slower | |
from: rst , to: docx , file: format.rst | |
pandoc_rb : 25.8 i/s | |
pandoc-ruby (read file): 13.5 i/s - 1.91x (± 0.09) slower | |
pandoc-ruby : 13.4 i/s - 1.92x (± 0.11) slower | |
from: textile , to: markdown, file: format.textile | |
pandoc_rb : 2074.2 i/s | |
pandoc-ruby (read file): 29.9 i/s - 69.32x (± 5.19) slower | |
pandoc-ruby : 29.0 i/s - 71.71x (± 4.60) slower | |
from: textile , to: latex , file: format.textile | |
pandoc_rb : 2473.7 i/s | |
pandoc-ruby (read file): 33.1 i/s - 74.89x (± 2.56) slower | |
pandoc-ruby : 30.4 i/s - 81.52x (± 5.25) slower | |
from: textile , to: html , file: format.textile | |
pandoc_rb : 3388.9 i/s | |
pandoc-ruby (read file): 31.5 i/s - 107.81x (± 4.37) slower | |
pandoc-ruby : 29.8 i/s - 113.76x (± 7.71) slower | |
from: textile , to: docx , file: format.textile | |
pandoc_rb : 26.0 i/s | |
pandoc-ruby (read file): 9.5 i/s - 2.75x (± 0.58) slower | |
pandoc-ruby : 2.7 i/s - 9.55x (± 2.35) slower | |
from: docx , to: markdown, file: image_test.docx | |
pandoc_rb : 480.3 i/s | |
pandoc-ruby (read file): 15.7 i/s - 30.56x (± 4.58) slower | |
from: docx , to: latex , file: image_test.docx | |
pandoc_rb : 234.6 i/s | |
pandoc-ruby (read file): 19.9 i/s - 11.79x (± 0.73) slower | |
from: docx , to: html , file: image_test.docx | |
pandoc_rb : 227.7 i/s | |
pandoc-ruby (read file): 15.8 i/s - 14.42x (± 1.17) slower | |
from: docx , to: docx , file: image_test.docx | |
pandoc_rb : 24.2 i/s | |
pandoc-ruby (read file): 11.4 i/s - 2.12x (± 0.09) slower |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment