BloombergLP::bslmt::ThroughputBenchmark::busyWork

Perform arithmetic operations to consume an amount of time in linear relation to the specified busyWorkAmount.

Synopsis

Declared in <bslmt_throughputbenchmark.h>

static
void
busyWork(bsls::Types::Int64 busyWorkAmount);

Description

Note that the duration of busyWork invoked with a particular busyWorkAmount will vary with system load.

Parameters

NameDescription
busyWorkAmountamount of simulated work to perform