mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
09ae512ccb
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>
16 lines
234 B
TypeScript
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");
|
|
},
|
|
});
|