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_ivar_lazy_set.yml
blob
7372ffcfbcad56f7dfecf398371298ada9b13ef5
1
prelude: |
2
class Example
3
def lazy_set
4
@uninitialized ||= 123
5
end
6
end
7
8
objs = 10000000.times.map { Example.new }
9
benchmark:
10
vm_ivar_lazy_set: |
11
objs.each(&:lazy_set)
12
loop_count: 1