diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-03-11 23:07:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 23:07:02 +0100 |
commit | 09ae512ccb4d8a36a0c6c1a700b48fdd3f9fc6c2 (patch) | |
tree | 90f5bc5a9d48f5279208eecf985dcf7f777e87c5 /runtime/js/90_deno_ns.js | |
parent | 32c059544be40987a445f13cc3c7ba585f47889e (diff) |
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>
Diffstat (limited to 'runtime/js/90_deno_ns.js')
-rw-r--r-- | runtime/js/90_deno_ns.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index d52f267c0..5298d0a69 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -7,6 +7,7 @@ __bootstrap.denoNs = { metrics: core.metrics, test: __bootstrap.testing.test, + bench: __bootstrap.testing.bench, Process: __bootstrap.process.Process, run: __bootstrap.process.run, isatty: __bootstrap.tty.isatty, |