1
0
Fork 0
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:
Jemma Issroff 2022-09-22 12:20:45 -04:00 committed by Aaron Patterson
parent fbaac837cf
commit b5c459d57a
Notes: git 2022-09-23 02:30:05 +09:00

View file

@ -0,0 +1,6 @@
prelude: |
objs = 100000.times.map { Object.new }
benchmark:
vm_freeze_obj: |
objs.map(&:freeze)
loop_count: 600