aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/vm1_gc_short_with_long.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm1_gc_short_with_long.yml')
-rw-r--r--benchmark/vm1_gc_short_with_long.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/benchmark/vm1_gc_short_with_long.yml b/benchmark/vm1_gc_short_with_long.yml
new file mode 100644
index 0000000000..f173ec0ca5
--- /dev/null
+++ b/benchmark/vm1_gc_short_with_long.yml
@@ -0,0 +1,16 @@
+benchmark:
+ vm1_gc_short_with_long: |
+ long_lived = Array.new(1_000_000){|i| "#{i}"}
+ GC.start
+ GC.start
+ i = 0
+ while i<30_000_000 # while loop 1
+ a = '' # short-lived String
+ b = ''
+ c = ''
+ d = ''
+ e = ''
+ f = ''
+ i+=1
+ end
+loop_count: 1