Method: Tem::Benchmarks.all_benchmarks
- Defined in:
- lib/tem/benchmarks/benchmarks.rb
.all_benchmarks ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/tem/benchmarks/benchmarks.rb', line 63 def self.all_benchmarks benchmarks = {} t = Tem::Benchmarks.new t.setup t.methods.select { |m| m =~ /time_/ }.sort.each do |m| print "Timing: #{m[5..-1]}...\n" t.send m.to_sym benchmarks[m] = t.timing end t.teardown benchmarks end |