IRB Has Built-In Benchmarking With Ruby 3
As of Ruby 3.0.0, irb
βRuby's interactive consoleβcomes with a measure
method. This can be used to turn the processing time feature on and off. With it on, you can do rough benchmarking of how long different process take.
Ruby measure
or measure(true)
to turn on the timing feature.
Once it is enabled, any command you run will including processing time details:
Last updated