mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00

```ts Deno.bench("benchmark", { warmup: 10_000, n: 1000 }, () => { ... }); ``` Closes #17649
17 lines
249 B
TypeScript
17 lines
249 B
TypeScript
Deno.bench("above 10,000,000 iterations", {
|
|
n: 10_000_001,
|
|
warmup: 10,
|
|
}, () => {
|
|
});
|
|
|
|
Deno.bench("below 10,000,000 iterations", {
|
|
n: 1,
|
|
warmup: 10,
|
|
}, () => {
|
|
});
|
|
|
|
Deno.bench("negative iterations", {
|
|
n: -10,
|
|
warmup: -10,
|
|
}, () => {
|
|
});
|