benchmark/000755 001751 000177 0000000000 14522265600014471 5ustar00runner000000 000000 1452226560014522265600benchmark/LICENSE000644 001751 000177 0000002165 14522265600015502 0ustar00runner000000 000000 1452226560014522265600 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE benchmark/README.md000644 001751 000177 0000001030 14522265600015751 0ustar00runner000000 000000 1452227571414522265600# Installation > `npm install --save @types/benchmark` # Summary This package contains type definitions for benchmark (https://benchmarkjs.com). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/benchmark. ### Additional Details * Last updated: Mon, 06 Nov 2023 22:41:04 GMT * Dependencies: none # Credits These definitions were written by [Asana](https://asana.com), [Charlie Fish](https://github.com/fishcharlie), and [Blair Zajac](https://github.com/blair). benchmark/index.d.ts000644 001751 000177 0000014612 14522265600016376 0ustar00runner000000 000000 1452226560014522265600declare class Benchmark { static filter(arr: T[], callback: (value: T) => any, thisArg?: any): T[]; static filter(arr: T[], filter: string, thisArg?: any): T[]; static formatNumber(num: number): string; static join(obj: Object, separator1?: string, separator2?: string): string; static invoke(benches: Benchmark[], name: string | Object, ...args: any[]): any[]; static runInContext(context: Object): Function; static each(obj: Object | any[], callback: Function, thisArg?: any): void; static forEach(arr: T[], callback: (value: T) => any, thisArg?: any): void; static forOwn(obj: Object, callback: Function, thisArg?: any): void; static has(obj: Object, path: any[] | string): boolean; static indexOf(arr: T[], value: T, fromIndex?: number): number; static map(arr: T[], callback: (value: T) => K, thisArg?: any): K[]; static reduce(arr: T[], callback: (accumulator: K, value: T) => K, thisArg?: any): K; static options: Benchmark.Options; static platform: Benchmark.Platform; static support: Benchmark.Support; static version: string; constructor(fn: Function | string, options?: Benchmark.Options); constructor(name: string, fn: Function | string, options?: Benchmark.Options); constructor(name: string, options?: Benchmark.Options); constructor(options: Benchmark.Options); id: number; name?: string; count: number; cycles: number; hz: number; compiled: Function | string; error: Error; fn: Function | string; aborted: boolean; running: boolean; setup: Function | string; teardown: Function | string; stats: Benchmark.Stats; times: Benchmark.Times; abort(): Benchmark; clone(options: Benchmark.Options): Benchmark; compare(benchmark: Benchmark): number; emit(type: string | Object): any; listeners(type: string): Function[]; off(type?: string, listener?: Function): Benchmark; off(types: string[]): Benchmark; on(type?: string, listener?: Function): Benchmark; on(types: string[]): Benchmark; reset(): Benchmark; run(options?: Benchmark.Options): Benchmark; toString(): string; } declare namespace Benchmark { export interface Options { async?: boolean | undefined; defer?: boolean | undefined; delay?: number | undefined; id?: string | undefined; initCount?: number | undefined; maxTime?: number | undefined; minSamples?: number | undefined; minTime?: number | undefined; name?: string | undefined; onAbort?: Function | undefined; onComplete?: Function | undefined; onCycle?: Function | undefined; onError?: Function | undefined; onReset?: Function | undefined; onStart?: Function | undefined; setup?: Function | string | undefined; teardown?: Function | string | undefined; fn?: Function | string | undefined; queued?: boolean | undefined; } export interface Platform { description: string; layout: string; product: string; name: string; manufacturer: string; os: string; prerelease: string; version: string; toString(): string; } export interface Support { browser: boolean; timeout: boolean; decompilation: boolean; } export interface Stats { moe: number; rme: number; sem: number; deviation: number; mean: number; sample: any[]; variance: number; } export interface Times { cycle: number; elapsed: number; period: number; timeStamp: number; } export class Deferred { constructor(clone: Benchmark); benchmark: Benchmark; cycles: number; elapsed: number; timeStamp: number; resolve(): void; } export interface Target { options: Options; async?: boolean | undefined; defer?: boolean | undefined; delay?: number | undefined; initCount?: number | undefined; maxTime?: number | undefined; minSamples?: number | undefined; minTime?: number | undefined; name?: string | undefined; fn?: Function | undefined; id: number; stats?: Stats | undefined; times?: Times | undefined; running: boolean; count?: number | undefined; compiled?: Function | undefined; cycles?: number | undefined; hz?: number | undefined; } export class Event { constructor(type: string | Object); aborted: boolean; cancelled: boolean; currentTarget: Object; result: any; target: Target; timeStamp: number; type: string; } export class Suite { static options: { name: string }; constructor(name?: string, options?: Options); constructor(options?: Options); length: number; aborted: boolean; running: boolean; name?: string; abort(): Suite; add(name: string, fn: Function | string, options?: Options): Suite; add(fn: Function | string, options?: Options): Suite; add(name: string, options?: Options): Suite; add(options: Options): Suite; clone(options: Options): Suite; emit(type: string | Object): any; filter(callback: Function | string): Suite; join(separator?: string): string; listeners(type: string): Function[]; off(type?: string, callback?: Function): Suite; off(types: string[]): Suite; on(type?: string, callback?: Function): Suite; on(types: string[]): Suite; push(benchmark: Benchmark): number; reset(): Suite; run(options?: Options): Suite; reverse(): any[]; sort(compareFn: (a: any, b: any) => number): any[]; splice(start: number, deleteCount?: number): any[]; unshift(benchmark: Benchmark): number; each(callback: Function): Suite; forEach(callback: Function): Suite; indexOf(value: any): number; map(callback: Function | string): any[]; reduce(callback: Function, accumulator: T): T; pop(): Function; shift(): Benchmark; slice(start: number, end: number): any[]; slice(start: number, deleteCount: number, ...values: any[]): any[]; } } export = Benchmark; benchmark/package.json000644 001751 000177 0000002006 14522265600016764 0ustar00runner000000 000000 1452227571414522265600{ "name": "@types/benchmark", "version": "2.1.5", "description": "TypeScript definitions for benchmark", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/benchmark", "license": "MIT", "contributors": [ { "name": "Asana", "url": "https://asana.com" }, { "name": "Charlie Fish", "githubUsername": "fishcharlie", "url": "https://github.com/fishcharlie" }, { "name": "Blair Zajac", "githubUsername": "blair", "url": "https://github.com/blair" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/benchmark" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "0d65b73ff2fb48fbce07355999d5c6efc8c4a77d00f3d189716974dc860242f7", "typeScriptVersion": "4.5" }