summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/bench/explicit_start_and_end.ts
AgeCommit message (Collapse)Author
2023-07-31feat(bench): add BenchContext::start() and BenchContext::end() (#18734)Nayeem Rahman
Closes #17589. ```ts Deno.bench("foo", async (t) => { const resource = setup(); // not included in measurement t.start(); measuredOperation(resource); t.end(); resource.close(); // not included in measurement }); ```