UNPKG

benchmark-suite

Version:
13 lines (12 loc) 451 B
import Stats from 'stats-accumulator'; import type { RunOptions, RunResult, TestFn } from './types.ts'; export default class OperationsTest { name: string; fn: TestFn; constructor(name: string, fn: TestFn); run(options?: RunOptions): Promise<RunResult>; callibrate(_options: RunOptions): Promise<void>; runOnce(_options?: RunOptions): Promise<number>; metric(stats: Stats): number; formatStats(stats: Stats): string; }