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_gc_wb_obj.yml
blob
a2a2ce2d1865012a360e85ea6db2671eb03a70e8
1
prelude: |
2
class C
3
attr_accessor :foo
4
end
5
short_lived_obj = C.new
6
7
if RUBY_VERSION >= "2.2.0"
8
GC.start(full_mark: false, immediate_mark: true, immediate_sweep: true)
9
end
10
11
short_lived = ''
12
benchmark:
13
vm_gc_wb_obj: |
14
short_lived_obj.foo = short_lived # write barrier
15
loop_count: 30000000