Commit 0514bd4a

0514bd4a7e79Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 10 files

Description

bench: rename 10 files to bm_ prefix for naming consistency

The benchmark/ directory had three coexisting conventions:

  • 41 files with bm_ prefix
  • 10 files with bare names
  • 1 file with _bench suffix (attr_accessor_bench.rb)

Normalizing to a single rule — every benchmark file starts with bm_ — matches the convention used by Ruby's own benchmark/bm_*.rb directory and the existing majority here. The 10 bare-name files become bm_*; attr_accessor_bench.rb becomes bm_attr_accessor.rb (suffix replaced by prefix).

No behavior change. The bench harness globs benchmark/*.rb so the renames don't affect what runs. README's bench result table already drops the bm_ prefix from display names ("ackermann" for bm_ackermann.rb, etc.) so its hand-curated rows match the new files via the same convention as the existing entries.

After: 52 benchmarks, all pass, every file matches bm_*.rb.

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

Details

Commit
0514bd4a7e79
Parent
86e33543c889

benchmark/bm_attr_accessor.rbrenamedView file

No text changes