From f400cde0a07d83d690380f9d1aa2d6be5ec68b67 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 29 Sep 2015 00:21:10 +0000 Subject: bm_vm_symbol_block_pass.rb: rename git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- benchmark/bm_vm_symbol_block_pass.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 benchmark/bm_vm_symbol_block_pass.rb (limited to 'benchmark/bm_vm_symbol_block_pass.rb') diff --git a/benchmark/bm_vm_symbol_block_pass.rb b/benchmark/bm_vm_symbol_block_pass.rb new file mode 100644 index 0000000000..1d433353e1 --- /dev/null +++ b/benchmark/bm_vm_symbol_block_pass.rb @@ -0,0 +1,13 @@ +class C + 1000.times {|i| + eval("def i#{i};end") + } +end + +c = C.new +m = C.instance_methods(false) +5_000.times do + m.each do |n| + c.tap(&n) + end +end -- cgit v1.2.3