Skip to main content

JsonReporter

@webda/bench


Class: JsonReporter

Defined in: packages/bench/src/reporters/json.ts:22

Write the results as JSON, one file per suite and backend: <suite>-<backend>.json

The results are merged with the file already there: a result replaces the previous result of the same scenario and parameters (see resultKey), the others are kept. Several bench files of a suite (each run in its own process) share one file, and a partial run (WEBDA_BENCH_FILTER) updates its scenarios only.

Implements​

Constructors​

Constructor​

new JsonReporter(outputDir?): JsonReporter

Defined in: packages/bench/src/reporters/json.ts:26

Parameters​

outputDir?​

string = ...

folder of the results

Returns​

JsonReporter

Properties​

outputDir​

protected outputDir: string

Defined in: packages/bench/src/reporters/json.ts:26

folder of the results

Methods​

report()​

report(results): void

Defined in: packages/bench/src/reporters/json.ts:31

Parameters​

results​

BenchResult[]

Returns​

void

Implementation of​

Reporter.report