summaryrefslogtreecommitdiff
path: root/benchmark/vm_dstr_digit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm_dstr_digit.rb')
-rw-r--r--benchmark/vm_dstr_digit.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/vm_dstr_digit.rb b/benchmark/vm_dstr_digit.rb
new file mode 100644
index 0000000000..caaa395192
--- /dev/null
+++ b/benchmark/vm_dstr_digit.rb
@@ -0,0 +1,7 @@
+i = 0
+x = 0
+y = 9
+while i<6_000_000 # benchmark loop 2
+ i += 1
+ str = "foo#{x}bar#{y}baz"
+end