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.
14 lines
190 B
YAML
14 lines
190 B
YAML
prelude: |
|
|
class C
|
|
def set_ivars
|
|
@a = nil
|
|
@b = nil
|
|
@c = nil
|
|
end
|
|
end
|
|
|
|
c = C.new
|
|
benchmark:
|
|
vm_ivar_embedded_obj_init: |
|
|
c.set_ivars
|
|
loop_count: 30000000
|