summaryrefslogtreecommitdiff
path: root/benchmark/vm1_gc_short_with_symbol.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm1_gc_short_with_symbol.yml')
-rw-r--r--benchmark/vm1_gc_short_with_symbol.yml26
1 files changed, 10 insertions, 16 deletions
diff --git a/benchmark/vm1_gc_short_with_symbol.yml b/benchmark/vm1_gc_short_with_symbol.yml
index c78cd34..7fc1abe 100644
--- a/benchmark/vm1_gc_short_with_symbol.yml
+++ b/benchmark/vm1_gc_short_with_symbol.yml
@@ -1,19 +1,13 @@
prelude: |
- # make many symbols
+ 50_000.times{|i| sym = "sym#{i}".to_sym}
+ GC.start
+ GC.start
benchmark:
vm1_gc_short_with_symbol: |
- 50_000.times{|i| sym = "sym#{i}".to_sym}
- 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