зеркало из https://github.com/github/ruby.git
* benchmark/bm_vm3_gc_old_full.rb: add GC.start benchmark.
* benchmark/bm_vm3_gc_old_immediate.rb: ditto. * benchmark/bm_vm3_gc_old_lazy.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b065141050
Коммит
1228d134dd
|
@ -1,3 +1,11 @@
|
|||
Wed Mar 9 15:04:22 2016 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* benchmark/bm_vm3_gc_old_full.rb: add GC.start benchmark.
|
||||
|
||||
* benchmark/bm_vm3_gc_old_immediate.rb: ditto.
|
||||
|
||||
* benchmark/bm_vm3_gc_old_lazy.rb: ditto.
|
||||
|
||||
Wed Mar 9 14:59:11 2016 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* benchmark/driver.rb: exit benchmarking if a benchmark process
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
old_object = Array.new(1_000_000){''}
|
||||
100.times do
|
||||
GC.start
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
old_object = Array.new(1_000_000){''}
|
||||
30_000.times do
|
||||
GC.start(full_mark: false, immediate_sweep: true)
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
old_object = Array.new(1_000_000){''}
|
||||
30_000.times do
|
||||
GC.start(full_mark: false, immediate_sweep: false)
|
||||
end
|
Загрузка…
Ссылка в новой задаче