mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 04:07:58 +00:00
12 lines
192 B
YAML
12 lines
192 B
YAML
prelude: |
|
|
class C
|
|
@a = 1
|
|
def self.a o
|
|
@a = o; @a = o; @a = o; @a = o; @a = o; @a = o;
|
|
end
|
|
end
|
|
benchmark:
|
|
vm_ivar_of_class_set: |
|
|
a = C.a(nil)
|
|
loop_count: 30000000
|