mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Adds a benchmark to measure freezing objects
This commit is contained in:
parent
fbaac837cf
commit
b5c459d57a
Notes:
git
2022-09-23 02:30:05 +09:00
1 changed files with 6 additions and 0 deletions
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…
Reference in a new issue