diff options
Diffstat (limited to 'bench/run_benches.sh')
| -rwxr-xr-x | bench/run_benches.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bench/run_benches.sh b/bench/run_benches.sh new file mode 100755 index 0000000..0210622 --- /dev/null +++ b/bench/run_benches.sh | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | zig build -Doptimize=ReleaseSafe | ||
| 4 | cd zig-out/bin/ | ||
| 5 | |||
| 6 | echo "\nBinary sizes =======" | ||
| 7 | ls -lh | awk '{ print $5, $9 }' | ||
| 8 | |||
| 9 | echo "\nBenchmarks ==========\n" | ||
| 10 | for bin in *; do ./$bin ../../data/lang_mix.txt; done | ||
| 11 | |||
| 12 | cd - > /dev/null | ||