summaryrefslogtreecommitdiff
path: root/cli/bench/main.rs
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-02-02 19:05:46 +0800
committerGitHub <noreply@github.com>2021-02-02 12:05:46 +0100
commit6abf126c2a7a451cded8c6b5e6ddf1b69c84055d (patch)
treefd94c013a19fcb38954844085821ec1601c20e18 /cli/bench/main.rs
parenta2b5d44f1aa9d64f448a2a3cc2001272e2f60b98 (diff)
chore: remove std directory (#9361)
This removes the std folder from the tree. Various parts of the tests are pretty tightly dependent on std (47 direct imports and 75 indirect imports, not counting the cli tests that use them as fixtures) so I've added std as a submodule for now.
Diffstat (limited to 'cli/bench/main.rs')
-rw-r--r--cli/bench/main.rs20
1 files changed, 14 insertions, 6 deletions
diff --git a/cli/bench/main.rs b/cli/bench/main.rs
index 4f6465925..352c93010 100644
--- a/cli/bench/main.rs
+++ b/cli/bench/main.rs
@@ -79,7 +79,11 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[
),
(
"check",
- &["cache", "--reload", "std/examples/chat/server_test.ts"],
+ &[
+ "cache",
+ "--reload",
+ "test_util/std/examples/chat/server_test.ts",
+ ],
None,
),
(
@@ -88,18 +92,22 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[
"cache",
"--reload",
"--no-check",
- "std/examples/chat/server_test.ts",
+ "test_util/std/examples/chat/server_test.ts",
],
None,
),
(
"bundle",
- &["bundle", "std/examples/chat/server_test.ts"],
+ &["bundle", "test_util/std/examples/chat/server_test.ts"],
None,
),
(
"bundle_no_check",
- &["bundle", "--no-check", "std/examples/chat/server_test.ts"],
+ &[
+ "bundle",
+ "--no-check",
+ "test_util/std/examples/chat/server_test.ts",
+ ],
None,
),
];
@@ -254,8 +262,8 @@ fn get_binary_sizes(target_dir: &PathBuf) -> Result<HashMap<String, u64>> {
}
const BUNDLES: &[(&str, &str)] = &[
- ("file_server", "./std/http/file_server.ts"),
- ("gist", "./std/examples/gist.ts"),
+ ("file_server", "./test_util/std/http/file_server.ts"),
+ ("gist", "./test_util/std/examples/gist.ts"),
];
fn bundle_benchmark(deno_exe: &PathBuf) -> Result<HashMap<String, u64>> {
let mut sizes = HashMap::<String, u64>::new();