summaryrefslogtreecommitdiff
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.yml25
1 files changed, 11 insertions, 14 deletions
diff --git a/benchmark/vm1_gc_short_with_long.yml b/benchmark/vm1_gc_short_with_long.yml
index f173ec0ca5..c731aae548 100644
--- a/benchmark/vm1_gc_short_with_long.yml
+++ b/benchmark/vm1_gc_short_with_long.yml
@@ -1,16 +1,13 @@
+prelude: |
+ long_lived = Array.new(1_000_000){|i| "#{i}"}
+ GC.start
+ GC.start
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
+ a = '' # short-lived String
+ b = ''
+ c = ''
+ d = ''
+ e = ''
+ f = ''
+loop_count: 30000000