nicojensen.de/vendor/bundle/gems/kramdown-1.17.0/benchmark/timing.sh

11 lines
265 B
Bash
Raw Normal View History

2019-03-12 13:49:49 +01:00
#!/bin/bash
source ~/.bashrc
for VERSION in `rvm list strings | sort`; do
rvm $VERSION
echo $(ruby -v)
ruby -Ilib bin/kramdown < benchmark/mdsyntax.text 2>/dev/null >/dev/null
time ruby -Ilib bin/kramdown < benchmark/mdsyntax.text 2>/dev/null >/dev/null
done