public
Created

poor man's benchmark

  • Download Gist
bm.rb
Ruby
1 2 3 4 5
def measure
t = Time.now
yield
puts Time.now - t
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.