summaryrefslogtreecommitdiff
path: root/bench/run_benches.sh
blob: e2a26a8658395be8e137717bb8bff8cc7edb2681 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if ! zig build -Doptimize=ReleaseSafe; then
  exit 1
fi

cd zig-out/bin/

echo "\nBinary sizes ======="
ls -lh | awk '{ print $5, $9 }'

echo "\nBenchmarks ==========\n"
for bin in *; do ./$bin ../../data/lang_mix.txt; done

cd - > /dev/null