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
_benchsuffix (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
benchmark/bm_csv_process.rbrenamedView file
Loading diff…
benchmark/bm_io_wordcount.rbrenamedView file
Loading diff…
benchmark/bm_json_parse.rbrenamedView file
Loading diff…
benchmark/bm_keyword_args.rbrenamedView file
Loading diff…
benchmark/bm_life.rbrenamedView file
Loading diff…
benchmark/bm_linked_list.rbrenamedView file
Loading diff…
benchmark/bm_rbtree.rbrenamedView file
Loading diff…
benchmark/bm_sudoku.rbrenamedView file
Loading diff…
benchmark/bm_template.rbrenamedView file
Loading diff…