mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
discarded unused parameter
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
565fec45b9
commit
4ec25bdd63
1 changed files with 4 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
||||||
# benchmark.rb
|
# benchmark.rb
|
||||||
#
|
#
|
||||||
=begin
|
=begin
|
||||||
|
2002-04-25: bmbm(): killed unused parameter @fmtstr (gotoken)
|
||||||
2001-11-26: Time.times renamed Process.times for ruby17 (gotoken#notwork.org)
|
2001-11-26: Time.times renamed Process.times for ruby17 (gotoken#notwork.org)
|
||||||
2001-01-12: made bmbm module func. bmbm return Tms array.
|
2001-01-12: made bmbm module func. bmbm return Tms array.
|
||||||
2001-01-10: added bmbm, Job and INSTALL.rb (gotoken#notwork.org)
|
2001-01-10: added bmbm, Job and INSTALL.rb (gotoken#notwork.org)
|
||||||
|
@ -439,7 +440,7 @@ Gotoken (gotoken@notwork.org).
|
||||||
=end
|
=end
|
||||||
|
|
||||||
module Benchmark
|
module Benchmark
|
||||||
BENCHMARK_VERSION = "2001-11-26"
|
BENCHMARK_VERSION = "2002-04-25"
|
||||||
|
|
||||||
def Benchmark::times()
|
def Benchmark::times()
|
||||||
Process::times()
|
Process::times()
|
||||||
|
@ -478,7 +479,7 @@ module Benchmark
|
||||||
job.list.each{|label,item|
|
job.list.each{|label,item|
|
||||||
print(label.ljust(width))
|
print(label.ljust(width))
|
||||||
res = Benchmark::measure(&item)
|
res = Benchmark::measure(&item)
|
||||||
print res.format(@fmtstr)
|
print res.format()
|
||||||
list.push res
|
list.push res
|
||||||
}
|
}
|
||||||
sum = Tms.new; list.each{|i| sum += i}
|
sum = Tms.new; list.each{|i| sum += i}
|
||||||
|
@ -494,7 +495,7 @@ module Benchmark
|
||||||
GC::start
|
GC::start
|
||||||
print label.ljust(width)
|
print label.ljust(width)
|
||||||
res = Benchmark::measure(&item)
|
res = Benchmark::measure(&item)
|
||||||
print res.format(@fmtstr)
|
print res.format()
|
||||||
ary.push res
|
ary.push res
|
||||||
list.push [label, res]
|
list.push [label, res]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue