diff options
author | Jemma Issroff <[email protected]> | 2022-07-15 10:12:51 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2022-07-15 10:29:42 -0400 |
commit | c53439294e390595c88c6f3094021ffc7c0147e1 (patch) | |
tree | d3e12af53c5aa22cdab92cd0c94da7935d41418c /benchmark/vm_ivar_embedded_obj_init.yml | |
parent | 7424ea184f9d67c1c7f3ee97494ed3bd1aa60833 (diff) |
Fixes ivar benchmarks to not depend on object allocation
Prior to this change, we were measuring object allocation as well
as setting instance variables within ivar benchmarks. With this
change, we now only measure setting instance variables within
ivar benchmarks.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6142
Diffstat (limited to 'benchmark/vm_ivar_embedded_obj_init.yml')
-rw-r--r-- | benchmark/vm_ivar_embedded_obj_init.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/benchmark/vm_ivar_embedded_obj_init.yml b/benchmark/vm_ivar_embedded_obj_init.yml index eed6d4c0b9..74fe20a630 100644 --- a/benchmark/vm_ivar_embedded_obj_init.yml +++ b/benchmark/vm_ivar_embedded_obj_init.yml @@ -1,12 +1,14 @@ prelude: | class C - def initialize + def set_ivars @a = nil @b = nil @c = nil end end + + c = C.new benchmark: vm_ivar_embedded_obj_init: | - C.new + c.set_ivars loop_count: 30000000 |