From 59aa1588fc5ffe122105440a96656011a10edf28 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Mon, 26 Oct 2026 18:29:08 +0000 Subject: [PATCH] src/bench.sh and src/README.md: genbench.sh --- diff --git a/src/README.md b/src/README.md index 0bfea20..5500839 100644 --- a/src/README.md +++ b/src/README.md @@ -148,7 +148,7 @@ an error's text are built in memory from `Scan.grab`, which is never freed, in place of `GetMem` and `FreeMem`; the compiler runs once. - **No bit cast.** A real's bits and back go through a pointer. -- **Speed.** On the 348,025 lines of `test/genbench.py`, 7.6 MB, the +- **Speed.** On the 348,025 lines of `test/genbench.sh`, 7.6 MB, the seed's scanner takes 75 ms and this one 74. It took 121 at first. What closed the gap, in the source: a byte loop in place of the slice comparison `a[0..n] = b[0..n]` (97 ms), a 256-entry table for the diff --git a/src/bench.sh b/src/bench.sh index 385050d..614feb0 100755 --- a/src/bench.sh +++ b/src/bench.sh @@ -7,7 +7,7 @@ set -e mkdir -p build/cmp/bench ln -sfn ../../lib build/cmp/lib -python3 test/genbench.py 12000 >build/cmp/bench/Bench.raz +sh test/genbench.sh 12000 >build/cmp/bench/Bench.raz echo "$(wc -l