aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-29 00:21:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-29 00:21:10 +0000
commitf400cde0a07d83d690380f9d1aa2d6be5ec68b67 (patch)
treecac561c74b714e33a29b2c566682419dd4ec4b9a /benchmark
parent9febb03a3c7827eb678ab69edbd14f614a249ef6 (diff)
downloadruby-f400cde0a07d83d690380f9d1aa2d6be5ec68b67.tar.gz
bm_vm_symbol_block_pass.rb: rename
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bm_vm2_symbol_block_pass.rb3
-rw-r--r--benchmark/bm_vm_symbol_block_pass.rb13
2 files changed, 13 insertions, 3 deletions
diff --git a/benchmark/bm_vm2_symbol_block_pass.rb b/benchmark/bm_vm2_symbol_block_pass.rb
deleted file mode 100644
index c8d6532bef..0000000000
--- a/benchmark/bm_vm2_symbol_block_pass.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-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)}}
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