Commit cc98e27c
cc98e27c4cf5Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 7 months ago · 2 files · ~1 modified
Description
chore: move bm_ao_render from test/ to benchmark/
ao_render (AOBench ray tracer, 323 lines) is a representative application benchmark rather than a feature test — it exercises classes, floating-point math, and cross-class type inference. Its output matches Ruby byte-exact (PPM image), which makes it well-suited to the benchmark harness's diff-based validation.
Spinel 409 ms vs Ruby 3,674 ms (~9.0x).
Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]
Details
- Commit
- cc98e27c4cf5
- Parent
- d1a4d317a3e1
README.mdmodifiedView file
@@ -78,7 +78,7 @@
7878
7979
## Benchmarks8080
81-
75 tests pass. 53 benchmarks pass.81+
74 tests pass. 54 benchmarks pass.8282
Geometric mean: **~49x faster** than CRuby across 50 benchmarks.8383
8484
### Computation@@ -118,6 +118,7 @@
118118
| pidigits (bigint) | 2 ms | 65 ms | 32.5x |119119
| str_concat | 2 ms | 67 ms | 33.5x |120120
| json_parse | 38 ms | 436 ms | 11.5x |121+
| ao_render (ray tracer) | 409 ms | 3,674 ms | 9.0x |121122
| template engine | 137 ms | 961 ms | 7.0x |122123
| io_wordcount | 26 ms | 153 ms | 5.9x |123124
| csv_process | 229 ms | 936 ms | 4.1x |@@ -228,8 +229,8 @@
228229
lib/sp_runtime.h Runtime library header (581 lines)229230
lib/sp_bigint.c Arbitrary precision integers (5,394 lines)230231
lib/regexp/ Built-in regexp engine (1,626 lines)231-
test/ 75 feature tests232-
benchmark/ 53 benchmarks232+
test/ 74 feature tests233+
benchmark/ 54 benchmarks233234
Makefile Build automation234235
```235236
@@ -257,8 +258,8 @@
257258
258259
```bash259260
make # build parser + regexp library + bootstrap compiler260-
make test # run 75 feature tests (requires bootstrap)261-
make bench # run 53 benchmarks (requires bootstrap)261+
make test # run 74 feature tests (requires bootstrap)262+
make bench # run 54 benchmarks (requires bootstrap)262263
make bootstrap # rebuild compiler from source263264
sudo make install # install to /usr/local (spinel in PATH)264265
make clean # remove build artifactsbenchmark/bm_ao_render.rbrenamedView file
Loading diff…