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_struct_big_hset.yml
blob
fc45cbee9c8478914011913aea4cbfeb1b95d52b
1
# loop_count is not utilized since `i` is involved in the script
2
benchmark:
3
vm_struct_big_hset: |
4
s = Struct.new(*('a'..'z').map { |x| x.to_sym })
5
x = s.new
6
i = 0
7
while i<6_000_000
8
i += 1
9
x[:k] = i
10
end
11
loop_count: 1