From 7f99972869c33010e842be4075378aeb08d30b6c Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 28 Sep 2015 18:10:16 +0000 Subject: benchmark for symbol block passing git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- benchmark/bm_vm2_symbol_block_pass.rb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 benchmark/bm_vm2_symbol_block_pass.rb (limited to 'benchmark/bm_vm2_symbol_block_pass.rb') diff --git a/benchmark/bm_vm2_symbol_block_pass.rb b/benchmark/bm_vm2_symbol_block_pass.rb new file mode 100644 index 0000000000..c8d6532bef --- /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)}} -- cgit v1.2.3