How to get execution time in rails console? December 25, 2022 by Tarik timing = Benchmark.measure { Post.all } The various attributes of the object returned (Benchmark::Tms) are provided here.