Adds a benchmark to measure freezing objects
This commit is contained in:
parent
fbaac837cf
commit
b5c459d57a
Notes:
git
2025-05-14 12:41:59 +00:00
6
benchmark/vm_freezeobj.yml
Normal file
6
benchmark/vm_freezeobj.yml
Normal file
@ -0,0 +1,6 @@
|
||||
prelude: |
|
||||
objs = 100000.times.map { Object.new }
|
||||
benchmark:
|
||||
vm_freeze_obj: |
|
||||
objs.map(&:freeze)
|
||||
loop_count: 600
|
Loading…
x
Reference in New Issue
Block a user