raz / commit 59aa1588

commit
59aa1588fc5ffe122105440a96656011a10edf28
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
f96277b9
src/bench.sh and src/README.md: genbench.sh

patch · log

2 files changed, +2 -2

src/README.md (history) modified +1 -1

@@ -148,7 +148,7 @@
148148 an error's text are built in memory from `Scan.grab`, which is never
149149 freed, in place of `GetMem` and `FreeMem`; the compiler runs once.
150150 - **No bit cast.** A real's bits and back go through a pointer.
151-- **Speed.** On the 348,025 lines of `test/genbench.py`, 7.6 MB, the
151+- **Speed.** On the 348,025 lines of `test/genbench.sh`, 7.6 MB, the
152152 seed's scanner takes 75 ms and this one 74. It took 121 at first.
153153 What closed the gap, in the source: a byte loop in place of the slice
154154 comparison `a[0..n] = b[0..n]` (97 ms), a 256-entry table for the

src/bench.sh (history) modified +1 -1

@@ -7,7 +7,7 @@
77 set -e
88 mkdir -p build/cmp/bench
99 ln -sfn ../../lib build/cmp/lib
10-python3 test/genbench.py 12000 >build/cmp/bench/Bench.raz
10+sh test/genbench.sh 12000 >build/cmp/bench/Bench.raz
1111 echo "$(wc -l <build/cmp/bench/Bench.raz) lines"
1212 for t in prev this; do
1313 if [ $t = prev ]; then cp build/boot/raz build/cmp/raz; else cp raz build/cmp/raz; fi