suite(name?, options?, fn): Promise
Attributes
name?:
stringThe suite name. Default: The
name property of fn, or
'<anonymous>' when fn has no name.options:
ObjectdiagnosticChannels?:
ArrayString diagnostics channel names inherited by
nested suites and benchmarks. Symbol values in the array are silently
ignored. Default:
[].only?:
booleanSelects all benchmarks nested in this suite. Default:
false.tags?:
string[]Labels inherited by nested suites and benchmarks.
Default:
[].fn:
Function | AsyncFunctionA function that declares nested suites,
benchmarks, and hooks.
Returns:
PromiseFulfilled when a top-level suite finishes, or with
undefined immediately when declared in another suite.Suite functions run while declarations are collected. Promise-returning suite functions are awaited before benchmark execution begins.