ruby 2.1.10
$ ruby app.rb
Ruby version: 2.1.10
Rehearsal ------------------------------------------
slice! 2.210000 2.390000 4.600000 ( 4.614415)
slice 0.010000 0.000000 0.010000 ( 0.008950)
--------------------------------- total: 4.610000sec
user system total real
slice! 0.920000 1.060000 1.980000 ( 1.990008)
slice 0.010000 0.000000 0.010000 ( 0.007840)
ruby 2.4.6
$ ruby app.rb
Ruby version: 2.4.6
Rehearsal ------------------------------------------
slice! 2.240000 2.450000 4.690000 ( 4.715899)
slice 0.010000 0.000000 0.010000 ( 0.009899)
--------------------------------- total: 4.700000sec
user system total real
slice! 0.870000 1.090000 1.960000 ( 1.957490)
slice 0.010000 0.000000 0.010000 ( 0.013238)
ruby 2.6.3
$ ruby app.rb
Ruby version: 2.6.3
Rehearsal ------------------------------------------
slice! 2.221282 2.468471 4.689753 ( 4.701863)
slice 0.009605 0.001857 0.011462 ( 0.011467)
--------------------------------- total: 4.701215sec
user system total real
slice! 0.867567 1.087543 1.955110 ( 1.958745)
slice 0.007350 0.000164 0.007514 ( 0.007529)