benchmark_format.ts view source
(results: BenchmarkResult[], options?: BenchmarkFormatJsonOptions | undefined): string import {benchmark_format_json} from '@fuzdev/fuz_util/benchmark_format.js'; Format results as JSON.
results
BenchmarkResult[]options?
BenchmarkFormatJsonOptions | undefinedreturns
string examples
console.log(format_json(results));
console.log(format_json(results, {pretty: false}));
console.log(format_json(results, {include_timings: true}));