repo.or.cz
/
ruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git]
/
benchmark
/
vm_attr_ivar_set.yml
blob
a0d379b18a0d64e8132d6251b9e47406d08eed52
1
prelude: |
2
class C
3
attr_accessor :a, :b
4
def initialize
5
@a = nil
6
@b = nil
7
end
8
end
9
obj = C.new
10
benchmark:
11
vm_attr_ivar_set: |
12
obj.a = 1
13
obj.b = 2
14
loop_count: 30000000