Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Benchmark::Tms#to_a

to_a

Returns a new 6-element array, consisting of the label, user CPU time, system CPU time, children’s user CPU time, children’s system CPU time and elapsed real time.

See also #memberwise #to_h #format #to_s also in 3.4 · 3.3 · 3.1 · 3.0