iso-bench
Version:
Small benchmark library focused in avoiding optimization/deoptimization pollution between tests by isolating them.
15 lines (14 loc) • 579 B
TypeScript
import * as Stream from "stream";
import * as TTY from "tty";
import { Processor } from "../../Processor";
import { Test, Sample } from "../../Test";
import { IsoBench } from "../../IsoBench";
export declare class StreamLog implements Processor {
private _log;
constructor(stream: Stream.Writable | TTY.WriteStream);
initialize(bench: IsoBench, tests: Test[]): void | undefined;
start(test: Test): void | undefined;
sample(test: Test, sample: Sample): void | undefined;
end(test: Test): void | undefined;
completed(tests: Test[]): void | undefined;
}