Interface MeasureOptions

Hierarchy

Properties

afterBatch?: Hook
afterIteration?: SyncHook
afterWarmup?: Hook
batchIntermissionTimeout?: number

The delay between batched measurements. VM is expected to run garbage collector during this delay.

Default

200

batchIterationCount?: number

The maximum number of iterations in a batch.

Default

Infinity

batchTimeout?: number

The maximum duration of batched measurements.

Default

1_000

beforeBatch?: Hook
beforeIteration?: SyncHook
measureTimeout?: number

Maximum measure duration. Doesn't include the duration of warmup iterations.

Default

10_000

targetRme?: number

The maximum relative margin of error that must be reached for each measurement [0, 1].

Default

0.002

warmupIterationCount?: number

The maximum number of warmup iterations that are run before each measurement.

Default

1

Generated using TypeDoc