Commit 86e33543

86e33543c889Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 2 files · ~1 modified · -1 deleted

Description

bench: drop bm_respond_to (statically resolved, only loop overhead)

obj.respond_to?(:foo) resolves at compile time to a constant true/false in spinel — there is no runtime dispatch table walk to measure. The bench body collapses to a tight loop with no payload, same shape as the just-removed bm_cfunc_itself.

After: 52 benchmarks, all pass. README counts updated in lockstep.

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

Details

Commit
86e33543c889
Parent
b1eefb4e6ede

README.mdmodifiedView file

@@ -81,7 +81,7 @@
8181
8282 ## Benchmarks
8383
84-290 tests pass. 53 benchmarks pass.
84+290 tests pass. 52 benchmarks pass.
8585 Geometric mean: **~11.6x faster** than miniruby (Ruby 4.1.0dev) across
8686 the 28 benchmarks below. Baseline is the latest CRuby `miniruby` build
8787 (without bundled gems), which is considerably faster than the system
@@ -263,7 +263,7 @@
263263 lib/sp_bigint.c Arbitrary precision integers (5_394 lines)
264264 lib/regexp/ Built-in regexp engine (1_866 lines)
265265 test/ 290 feature tests
266-benchmark/ 53 benchmarks
266+benchmark/ 52 benchmarks
267267 Makefile Build automation
268268 ```
269269
@@ -293,7 +293,7 @@
293293 make deps # fetch libprism into vendor/prism (one-time)
294294 make # build parser + regexp library + bootstrap compiler
295295 make test # run 290 feature tests (requires bootstrap)
296-make bench # run 53 benchmarks (requires bootstrap)
296+make bench # run 52 benchmarks (requires bootstrap)
297297 make bootstrap # rebuild compiler from source
298298 sudo make install # install to /usr/local (spinel in PATH)
299299 make clean # remove build artifacts