BloombergLP::bslmt::ThroughputBenchmark::estimateBusyWorkAmount

Return an estimate of the work amount so that busyWork invoked with the returned work amount executes, approximately, for the specified duration.

Synopsis

Declared in <bslmt_throughputbenchmark.h>

static
bsls::Types::Int64
estimateBusyWorkAmount(bsls::TimeInterval duration);

Description

Note that this estimate varies with system load.

Return Value

estimated work amount for the specified duration

Parameters

NameDescription
durationtarget duration of the simulated work