diff options
Diffstat (limited to 'cli/tsc')
-rw-r--r-- | cli/tsc/dts/lib.deno.ns.d.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 436387eba..610ed1061 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -1011,6 +1011,10 @@ declare namespace Deno { /** Restarts the timer for the bench measurement. This should be called * after doing setup work which should not be measured. * + * Warning: This method should not be used for benchmarks averaging less + * than 0.01s per iteration. In such cases it will be disabled but the call + * will still have noticeable overhead, resulting in a warning. + * * ```ts * Deno.bench("foo", async (t) => { * const data = await Deno.readFile("data.txt"); @@ -1024,6 +1028,10 @@ declare namespace Deno { /** End the timer early for the bench measurement. This should be called * before doing teardown work which should not be measured. * + * Warning: This method should not be used for benchmarks averaging less + * than 0.01s per iteration. In such cases it will be disabled but the call + * will still have noticeable overhead, resulting in a warning. + * * ```ts * Deno.bench("foo", async (t) => { * const file = await Deno.open("data.txt"); |