mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
feat(bench): add warmup
and n
for controlling number of iterations (#28123)
```ts Deno.bench("benchmark", { warmup: 10_000, n: 1000 }, () => { ... }); ``` Closes #17649
This commit is contained in:
parent
9b9eeabcc8
commit
116def7fad
9 changed files with 107 additions and 41 deletions
|
@ -75,17 +75,6 @@ const DenoNs = globalThis.Deno;
|
|||
* completed: boolean,
|
||||
* failed: boolean,
|
||||
* }} TestStepState
|
||||
*
|
||||
* @typedef {{
|
||||
* id: number,
|
||||
* name: string,
|
||||
* fn: BenchFunction
|
||||
* origin: string,
|
||||
* ignore: boolean,
|
||||
* only: boolean.
|
||||
* sanitizeExit: boolean,
|
||||
* permissions: PermissionOptions,
|
||||
* }} BenchDescription
|
||||
*/
|
||||
|
||||
/** @type {Map<number, TestState | TestStepState>} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue