benchmark_types.ts view source
BenchmarkBudget import type {BenchmarkBudget} from '@fuzdev/fuz_util/benchmark_types.js'; Effective time-budget config used to produce a benchmark sample set. Resolved from per-task overrides on top of suite defaults — what the measurement loop actually saw, not what was configured.
async_resolved captures the boolean that benchmark_warmup actually
returned for the measurement run — *not* the user's task.async hint.
The two diverge when (a) the hint is undefined and the function is
auto-detected sync vs. async, or (b) a conditional-async fn resolves
differently between runs. Persisting the resolved value is what makes
the budget describe "what the loop saw," not "what was configured."
duration_ms
type number
warmup_iterations
type number
min_iterations
type number
max_iterations
type number
async_resolved
type boolean