summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bm_vm2_symbol_block_pass.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmark/bm_vm2_symbol_block_pass.rb b/benchmark/bm_vm2_symbol_block_pass.rb
new file mode 100644
index 0000000..c8d6532
--- /dev/null
+++ b/benchmark/bm_vm2_symbol_block_pass.rb
@@ -0,0 +1,3 @@
+class C; 1000.times{|i|eval("def i#{i};end")}; end
+c = C.new; m = C.instance_methods(false)
+1_000.times{m.each{|n|c.tap(&n)}}