aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/vm_gc_short_with_symbol.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm_gc_short_with_symbol.yml')
-rw-r--r--benchmark/vm_gc_short_with_symbol.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/benchmark/vm_gc_short_with_symbol.yml b/benchmark/vm_gc_short_with_symbol.yml
new file mode 100644
index 0000000000..129b8bf4ed
--- /dev/null
+++ b/benchmark/vm_gc_short_with_symbol.yml
@@ -0,0 +1,13 @@
+prelude: |
+ 50_000.times{|i| sym = "sym#{i}".to_sym}
+ GC.start
+ GC.start
+benchmark:
+ vm_gc_short_with_symbol: |
+ a = '' # short-lived String
+ b = ''
+ c = ''
+ d = ''
+ e = ''
+ f = ''
+loop_count: 30000000