Skip to main content

Class: JsonSuiteReporter

A reporter that outputs benchmark results as JSON. Useful for CI/CD integration and programmatic analysis.

Example​

suite.withReporter(new JsonSuiteReporter({
outputFile: 'results.json',
pretty: true,
}))

Implements​

Constructors​

new JsonSuiteReporter()​

new JsonSuiteReporter(opts): JsonSuiteReporter

Parameters​

• opts: JsonSuiteReporterOptions

Returns​

JsonSuiteReporter

Defined in​

src/reporters/json-suite-reporter.ts:28

Properties​

report()​

report: (results) => void

Called after all benchmarks complete.

Parameters​

• results: Record<string, Result[]>

All benchmark results keyed by benchmark name

Returns​

void

Implementation of​

SuiteReporter.report

Defined in​

src/reporters/json-suite-reporter.ts:34