Benchmark.ips
does not accept Time::Span
for calculation and warmup times
#14758
Labels
Benchmark.ips
does not accept Time::Span
for calculation and warmup times
#14758
The signatures of
Benchmark.ips
andBenchmark::IPS::Job#initialize
are:Both
calculation
andwarmup
are durations in seconds, yet because of theNumber#seconds
call it is impossible to actually use aTime::Span
here:I think those parameters should be restricted to
Time::Span
s, andNumber
arguments should be deprecated. (By the way, it seems the only other non-deprecated, public API that accepts aNumber
as a duration is::sleep
.)The text was updated successfully, but these errors were encountered: