summaryrefslogtreecommitdiff
path: root/benchmark/vm_dstr_class_module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm_dstr_class_module.rb')
-rw-r--r--benchmark/vm_dstr_class_module.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/benchmark/vm_dstr_class_module.rb b/benchmark/vm_dstr_class_module.rb
new file mode 100644
index 0000000000..becf0861c7
--- /dev/null
+++ b/benchmark/vm_dstr_class_module.rb
@@ -0,0 +1,10 @@
+i = 0
+class A; end unless defined?(A)
+module B; end unless defined?(B)
+x = A
+y = B
+while i<6_000_000 # benchmark loop 2
+ i += 1
+ str = "foo#{x}bar#{y}baz"
+end
+