Added vm_ivar benchmark for initializing an embedded obj

This commit is contained in:
Jemma Issroff 2022-06-16 11:01:22 -04:00 committed by Aaron Patterson
parent 0ab2bca11c
commit af425b6d66
Notes: git 2022-06-17 00:47:43 +09:00
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,12 @@
prelude: |
class C
def initialize
@a = nil
@b = nil
@c = nil
end
end
benchmark:
vm_ivar_embedded_obj_init: |
C.new
loop_count: 30000000

View File

@ -9,6 +9,6 @@ prelude: |
end end
end end
benchmark: benchmark:
vm_ivar_init: | vm_ivar_extended_obj_init: |
C.new C.new
loop_count: 30000000 loop_count: 30000000