Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Benchmark::Tms#memberwise

memberwise(op, x)

Returns a new Tms object obtained by memberwise operation op of the individual times for this Tms object with those of the other Tms object (x).

op can be a mathematical operation such as +, -, *, /

See also #format #to_a #add! #to_h also in 3.4 · 3.2 · 3.1 · 3.0