| 27 | } |
| 28 | |
| 29 | interface BenchWithDataParams<D> { |
| 30 | name: string; |
| 31 | data: () => D; |
| 32 | batch?: number | null; |
| 33 | benchmarks?: Benchmarks<D>; |
| 34 | } |
| 35 | |
| 36 | export function benchWithData<D>(params: BenchWithDataParams<D> & ThisType<{ data: D }>): Metabench<D> { |
| 37 | const bench = metabench(params.name); |
nothing calls this directly
no outgoing calls
no test coverage detected