UNPKG

react-native-benchmark

Version:

React Native benchmarking library inspired by benchmark.js

16 lines (15 loc) 506 B
import { EventType } from './event'; import { ListenerFunction } from './types'; import { Options } from './types/options'; import { Stats } from './types/stats'; export declare class Suite { private benches; add(name: string, fn: Function): Suite; on(type: EventType, listener: ListenerFunction): Suite; off(type: EventType, listener?: ListenerFunction): Suite; run: (options?: Options) => Promise<any[]>; toJSON(): { [key: string]: Stats; }; toString(): string; }