diff options
| author | 2026-10-14 17:55:09 +0330 | |
|---|---|---|
| committer | 2026-10-14 17:55:09 +0330 | |
| commit | 5cfd43a291b0a3b292f0e26f8732578a7c57ed46 (patch) | |
| tree | 8e8fdfbb3582c04f4832f1ddc780c6b5812dd0f8 | |
| parent | bench: no-region guard, selftest and --rows, interp rows behind INTERP=1, fai... (diff) | |
bench.sh: interp core built and timed only with INTERP=1
| -rw-r--r-- | tests/bench/bench.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/bench/bench.sh b/tests/bench/bench.sh index 0a9acef..0437b0b 100644 --- a/tests/bench/bench.sh +++ b/tests/bench/bench.sh @@ -4,8 +4,12 @@ cd "$(dirname "$0")/../.."; T=$(mktemp -d); trap 'rm -rf $T' EXIT CC=${CC:-$(sh src/tools/findcc.sh)} || exit 1 make -s build/core/genome.bin || exit 1 -$CC -O2 -w -DJTYPE=int -DZYINTERP src/core/core.c src/core/io_linux.c -Isrc/core -Ibuild/core/map --embed-dir=build/core -o $T/zy -vms=("$T/zy"); names=("interp") +# the interpreter core only with INTERP=1 (it is slow, and the rows are rarely wanted) +vms=(); names=() +if [ "$INTERP" = 1 ]; then + $CC -O2 -w -DJTYPE=int -DZYINTERP src/core/core.c src/core/io_linux.c -Isrc/core -Ibuild/core/map --embed-dir=build/core -o $T/zy || exit 1 + vms+=("$T/zy"); names+=("interp") +fi # the host's own jit, where there is one (x86-64 linux: blocks are translated, o3 regions compiled; ZYO3INTERP=1 runs them on the region interpreter) if [ "$(uname -s)" = Linux ] && [ "$(uname -m)" = x86_64 ]; then $CC -O2 -w -DJTYPE=int src/core/core.c src/core/io_linux.c -Isrc/core -Ibuild/core/map --embed-dir=build/core -o $T/zyn && { vms+=("$T/zyn"); names+=("x86-64 jit"); } |
