OptionalafterRuns once after all iterations of a task phase (warmup or run).
OptionalafterRuns after each iteration in both warmup and run phases.
OptionalasyncWhether the provided task function is asynchronous, otherwise it is determined automatically.
Measuring an async task awaits it inside the timed window, so each sample
includes one microtask-turn overhead that subtractTimerOverhead does not
remove. For sub-resolution timings, prefer overriddenDuration.
OptionalbeforeRuns once before the iterations of a task phase (warmup or run).
OptionalbeforeRuns before each iteration in both warmup and run phases.
OptionalretainRetain samples for this task, overriding the bench-level retainSamples option
OptionalsignalAn AbortSignal for aborting this specific task
If not provided, falls back to BenchOptions.signal
The task function options