Benchmark Markdown parsers
I tiny-tyny quick & dirty script to benchmark markdown parsers
- No APC
- No X-Debug
On 1000 loops, I've got, in seconds :
erusev/parsedown: 1.4 s
michelf/php-markdown: 7.7 s
kzykhys/ciconia: 10.2 s
erusev/parsedown
I've made a recent "composer update" on this benchmark and I've got (on a slow laptop) :
erusev/parsedown: 15.4 s
michelf/php-markdown: 49.6 s
kzykhys/ciconia: 130.1 s
the parser from erusev is still the best ! Good job
Here I'm only benchmarking the speed. There are others facts to consider :
- erusev/parsedown: works also on PHP 5.2, Github flavored but rely on a singleton anti-pattern
- michelf/php-markdown: PHP 5.3, strange but easy to extend, rely massively on hidden coupling, no phpunit test
- kzykhys/ciconia: PHP 5.4, fully extendable with a symfony console (über-klass) but early stage, fully equiped with events, phar package etc...
Stars this repository if you like it ! (thanks)