LoginSignup
9
9

More than 5 years have passed since last update.

Rubyのベンチマークの取り方

Posted at

参考

具体例

require 'benchmark'
puts Benchmark::CAPTION
puts Benchmark.measure{
  #何かしらの処理
}

結果

     user     system      total        real
  0.000000   0.000000   0.000000 (  0.000010)
9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9