summaryrefslogtreecommitdiff
path: root/bench/run_benches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bench/run_benches.sh')
-rwxr-xr-xbench/run_benches.sh12
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
3zig build -Doptimize=ReleaseSafe
4cd zig-out/bin/
5
6echo "\nBinary sizes ======="
7ls -lh | awk '{ print $5, $9 }'
8
9echo "\nBenchmarks ==========\n"
10for bin in *; do ./$bin ../../data/lang_mix.txt; done
11
12cd - > /dev/null