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