@c4312/matcha
Version:
A caffeine driven, simple command line for benchmarking
20 lines (19 loc) • 474 B
TypeScript
import OriginalBenchmark from 'benchmark';
export interface Benchmark extends OriginalBenchmark {
name: string;
}
/**
* Output formatter interface
*/
export interface IReporter {
onStartCycle(benchmark: Benchmark): void;
onFinishCycle(benchmark: Benchmark): void;
onComplete(): void;
}
export interface IReporterFactory {
readonly description: string;
start(): IReporter;
}
export declare const reporters: {
[key: string]: IReporterFactory;
};