mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
c53439294e
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.
16 lines
220 B
YAML
16 lines
220 B
YAML
prelude: |
|
|
class C
|
|
def set_ivars
|
|
@a = nil
|
|
@b = nil
|
|
@c = nil
|
|
@d = nil
|
|
@e = nil
|
|
end
|
|
end
|
|
|
|
c = C.new
|
|
benchmark:
|
|
vm_ivar_extended_obj_init: |
|
|
c.set_ivars
|
|
loop_count: 30000000
|