summaryrefslogtreecommitdiff
path: root/benchmark/vm1_gc_wb_ary.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm1_gc_wb_ary.yml')
-rw-r--r--benchmark/vm1_gc_wb_ary.yml23
1 files changed, 10 insertions, 13 deletions
diff --git a/benchmark/vm1_gc_wb_ary.yml b/benchmark/vm1_gc_wb_ary.yml
index 62b3781..50fb4b6 100644
--- a/benchmark/vm1_gc_wb_ary.yml
+++ b/benchmark/vm1_gc_wb_ary.yml
@@ -1,15 +1,12 @@
-benchmark:
- vm1_gc_wb_ary: |
- short_lived_ary = []
+prelude: |
+ short_lived_ary = []
- if RUBY_VERSION >= "2.2.0"
- GC.start(full_mark: false, immediate_mark: true, immediate_sweep: true)
- end
+ if RUBY_VERSION >= "2.2.0"
+ GC.start(full_mark: false, immediate_mark: true, immediate_sweep: true)
+ end
- i = 0
- short_lived = ''
- while i<30_000_000 # while loop 1
- short_lived_ary[0] = short_lived # write barrier
- i+=1
- end
-loop_count: 1
+ short_lived = ''
+benchmark:
+ vm1_gc_wb_ary: |
+ short_lived_ary[0] = short_lived # write barrier
+loop_count: 30000000