Skip to content

Instantly share code, notes, and snippets.

@meal
Created March 18, 2015 15:19
Show Gist options
  • Save meal/fa4a1db0330d7414fb01 to your computer and use it in GitHub Desktop.
Save meal/fa4a1db0330d7414fb01 to your computer and use it in GitHub Desktop.
1.9.3-p551 :005 > Benchmark.bm{|x| x.report { sleep(RUBY_VERSION.to_f) } }
user system total real
0.000000 0.000000 0.000000 ( 1.900123)
2.1.5 :002 > Benchmark.bm{|x| x.report { sleep(RUBY_VERSION.to_f) } }
user system total real
0.000000 0.000000 0.000000 ( 2.100181)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment