Rubyで処理の時間計測方法 - Qiita

ループ処理やクエリ実行した際に計測する方法。start_time = Time.now#処理p "処理概要 #{Time.now - start_time}s"##追記コメントよりBenc…