iso-bench
Version:
Small benchmark library focused in avoiding optimization/deoptimization pollution between tests by isolating them.
15 lines (14 loc) • 569 B
TypeScript
import STREAM from "stream";
import 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;
}