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 2025-05-14 12:41:59 +00:00

View File

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