summaryrefslogtreecommitdiff
path: root/benchmark/bm_vm3_gc_old_lazy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bm_vm3_gc_old_lazy.rb')
-rw-r--r--benchmark/bm_vm3_gc_old_lazy.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/benchmark/bm_vm3_gc_old_lazy.rb b/benchmark/bm_vm3_gc_old_lazy.rb
new file mode 100644
index 0000000..b74d44b
--- /dev/null
+++ b/benchmark/bm_vm3_gc_old_lazy.rb
@@ -0,0 +1,4 @@
+old_object = Array.new(1_000_000){''}
+30_000.times do
+ GC.start(full_mark: false, immediate_sweep: false)
+end