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