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.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/benchmark/vm1_gc_short_with_symbol.yml b/benchmark/vm1_gc_short_with_symbol.yml
new file mode 100644
index 0000000000..c78cd34f6f
--- /dev/null
+++ b/benchmark/vm1_gc_short_with_symbol.yml
@@ -0,0 +1,19 @@
+prelude: |
+ # make many symbols
+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