1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-30 11:16:38 -05:00
denoland-deno/cli/tests/testdata/bench/ignore_permissions.ts
Bartek Iwańczuk 09ae512ccb
feat: "deno bench" subcommand (#13713)
This commit adds "deno bench" subcommand and "Deno.bench()"
API that allows to register bench cases. 

The API is modelled after "Deno.test()" and "deno test" subcommand.

Currently the output is rudimentary and bench cases and not
subject to "ops" and "resource" sanitizers.

Co-authored-by: evan <github@evan.lol>
2022-03-11 23:07:02 +01:00

16 lines
234 B
TypeScript

Deno.bench({
name: "ignore",
permissions: {
read: true,
write: true,
net: true,
env: true,
run: true,
ffi: true,
hrtime: true,
},
ignore: true,
fn() {
throw new Error("unreachable");
},
});