From 09ae512ccb4d8a36a0c6c1a700b48fdd3f9fc6c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 11 Mar 2022 23:07:02 +0100 Subject: 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 --- cli/tests/integration/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/tests/integration/mod.rs') diff --git a/cli/tests/integration/mod.rs b/cli/tests/integration/mod.rs index 8d934dc0f..98b203ee9 100644 --- a/cli/tests/integration/mod.rs +++ b/cli/tests/integration/mod.rs @@ -50,6 +50,8 @@ macro_rules! itest_flaky( // the test (ex. `lint_tests.rs`) and which is the implementation (ex. `lint.rs`) // when both are open, especially for two tabs in VS Code +#[path = "bench_tests.rs"] +mod bench; #[path = "bundle_tests.rs"] mod bundle; #[path = "cache_tests.rs"] -- cgit v1.2.3