aboutsummaryrefslogtreecommitdiffstats
path: root/lib/minitest/benchmark.rb
diff options
context:
space:
mode:
authorryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-17 23:02:16 +0000
committerryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-17 23:02:16 +0000
commitd6c86e631d030202f23b096a1659a495c0263c5a (patch)
tree641a37967f2626dc06001793266d4de29531a5d2 /lib/minitest/benchmark.rb
parent6b43a55611a8139a288e2550e933f84f80155245 (diff)
downloadruby-d6c86e631d030202f23b096a1659a495c0263c5a.tar.gz
Imported minitest 2.8.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/minitest/benchmark.rb')
-rw-r--r--lib/minitest/benchmark.rb28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/minitest/benchmark.rb b/lib/minitest/benchmark.rb
index 77c0afafb7..c6faa50770 100644
--- a/lib/minitest/benchmark.rb
+++ b/lib/minitest/benchmark.rb
@@ -83,8 +83,8 @@ class MiniTest::Unit
#
# def bench_algorithm
# validation = proc { |x, y| ... }
- # assert_performance validation do |x|
- # @obj.algorithm
+ # assert_performance validation do |n|
+ # @obj.algorithm(n)
# end
# end
@@ -127,8 +127,8 @@ class MiniTest::Unit
# Eg:
#
# def bench_algorithm
- # assert_performance_constant 0.9999 do |x|
- # @obj.algorithm
+ # assert_performance_constant 0.9999 do |n|
+ # @obj.algorithm(n)
# end
# end
@@ -153,8 +153,8 @@ class MiniTest::Unit
# Eg:
#
# def bench_algorithm
- # assert_performance_exponential 0.9999 do |x|
- # @obj.algorithm
+ # assert_performance_exponential 0.9999 do |n|
+ # @obj.algorithm(n)
# end
# end
@@ -173,8 +173,8 @@ class MiniTest::Unit
# Eg:
#
# def bench_algorithm
- # assert_performance_linear 0.9999 do |x|
- # @obj.algorithm
+ # assert_performance_linear 0.9999 do |n|
+ # @obj.algorithm(n)
# end
# end
@@ -329,8 +329,8 @@ class MiniTest::Spec
# Create a benchmark that verifies that the performance is linear.
#
# describe "my class" do
- # bench_performance_linear "fast_algorithm", 0.9999 do
- # @obj.fast_algorithm
+ # bench_performance_linear "fast_algorithm", 0.9999 do |n|
+ # @obj.fast_algorithm(n)
# end
# end
@@ -344,8 +344,8 @@ class MiniTest::Spec
# Create a benchmark that verifies that the performance is constant.
#
# describe "my class" do
- # bench_performance_constant "zoom_algorithm!" do
- # @obj.zoom_algorithm!
+ # bench_performance_constant "zoom_algorithm!" do |n|
+ # @obj.zoom_algorithm!(n)
# end
# end
@@ -359,8 +359,8 @@ class MiniTest::Spec
# Create a benchmark that verifies that the performance is exponential.
#
# describe "my class" do
- # bench_performance_exponential "algorithm" do
- # @obj.algorithm
+ # bench_performance_exponential "algorithm" do |n|
+ # @obj.algorithm(n)
# end
# end