1 | import { Executor } from '../executors/Executor';
|
2 | import BenchmarkTest, { BenchmarkDeferredTestFunction, BenchmarkTestFunction } from '../BenchmarkTest';
|
3 | import { BenchmarkSuiteProperties } from '../BenchmarkSuite';
|
4 | export default function registerSuite(name: string, descriptorOrFactory: BenchmarkSuiteDescriptor | BenchmarkSuiteFactory | BenchmarkTests): void;
|
5 | export declare function getInterface(executor: Executor): {
|
6 | registerSuite(name: string, descriptorOrFactory: BenchmarkSuiteDescriptor | BenchmarkSuiteFactory | BenchmarkTests): void;
|
7 | async: typeof BenchmarkTest.async;
|
8 | };
|
9 | export interface BenchmarkInterface {
|
10 | registerSuite(name: string, descriptor: BenchmarkSuiteDescriptor | BenchmarkSuiteFactory | BenchmarkTests): void;
|
11 | async: (testFunction: BenchmarkDeferredTestFunction, numCallsUntilResolution?: number) => BenchmarkTestFunction;
|
12 | }
|
13 | export interface BenchmarkTests {
|
14 | [name: string]: BenchmarkSuiteDescriptor | BenchmarkTestFunction | BenchmarkTests;
|
15 | }
|
16 | export interface BenchmarkSuiteDescriptor extends Partial<BenchmarkSuiteProperties> {
|
17 | tests: BenchmarkTests;
|
18 | }
|
19 | export interface BenchmarkSuiteFactory {
|
20 | (): BenchmarkSuiteDescriptor | BenchmarkTests;
|
21 | }
|