Closed kivikakk closed 4 years ago
$ cd vendor/cmark-gfm/; make bench PROG=../../zig-cache/bin/koino-release-fast
{ for x in `seq 1 20` ; do \
/usr/bin/env time -p ../../zig-cache/bin/koino-release-fast </dev/null >/dev/null ; \
/usr/bin/env time -p ../../zig-cache/bin/koino-release-fast bench/benchinput.md >/dev/null ; \
done \
} 2>&1 | grep 'real' | awk '{print $2}' | python3 'bench/stats.py'
mean = 1.5790, median = 1.5750, stdev = 0.0231
$ make bench
{ for x in `seq 1 20` ; do \
/usr/bin/env time -p build/src/cmark-gfm </dev/null >/dev/null ; \
/usr/bin/env time -p build/src/cmark-gfm bench/benchinput.md >/dev/null ; \
done \
} 2>&1 | grep 'real' | awk '{print $2}' | python3 'bench/stats.py'
mean = 0.9490, median = 0.9400, stdev = 0.0348
Still need to clean up the mess in
main.zig
. This gets our release fast runtime comparable (within 50%) ofcmark-gfm
's same.