summaryrefslogtreecommitdiff
path: root/cli/bench/main.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-09-19 09:32:21 -0500
committerGitHub <noreply@github.com>2022-09-19 10:32:21 -0400
commit1464b756a4ef091ef97d1bf7340188ab5fe5492a (patch)
tree2eff346ccf5782c501460aec63a5028742066fa6 /cli/bench/main.rs
parent8d50c09c0db4e9b0644263cde3f7ff990ec75259 (diff)
refactor: move out test files from root testdata directory into sub directories (#15949)
Diffstat (limited to 'cli/bench/main.rs')
-rw-r--r--cli/bench/main.rs27
1 files changed, 17 insertions, 10 deletions
diff --git a/cli/bench/main.rs b/cli/bench/main.rs
index 0ef520edd..c1d8ba2e4 100644
--- a/cli/bench/main.rs
+++ b/cli/bench/main.rs
@@ -35,7 +35,7 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[
// invalidating that cache.
(
"cold_hello",
- &["run", "--reload", "cli/tests/testdata/002_hello.ts"],
+ &["run", "--reload", "cli/tests/testdata/run/002_hello.ts"],
None,
),
(
@@ -43,19 +43,23 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[
&[
"run",
"--reload",
- "cli/tests/testdata/003_relative_import.ts",
+ "cli/tests/testdata/run/003_relative_import.ts",
],
None,
),
- ("hello", &["run", "cli/tests/testdata/002_hello.ts"], None),
+ (
+ "hello",
+ &["run", "cli/tests/testdata/run/002_hello.ts"],
+ None,
+ ),
(
"relative_import",
- &["run", "cli/tests/testdata/003_relative_import.ts"],
+ &["run", "cli/tests/testdata/run/003_relative_import.ts"],
None,
),
(
"error_001",
- &["run", "cli/tests/testdata/error_001.ts"],
+ &["run", "cli/tests/testdata/run/error_001.ts"],
Some(1),
),
(
@@ -64,7 +68,7 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[
"run",
"--reload",
"--no-check",
- "cli/tests/testdata/002_hello.ts",
+ "cli/tests/testdata/run/002_hello.ts",
],
None,
),
@@ -97,22 +101,25 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[
),
(
"text_decoder",
- &["run", "cli/tests/testdata/text_decoder_perf.js"],
+ &["run", "cli/tests/testdata/benches/text_decoder_perf.js"],
None,
),
(
"text_encoder",
- &["run", "cli/tests/testdata/text_encoder_perf.js"],
+ &["run", "cli/tests/testdata/benches/text_encoder_perf.js"],
None,
),
(
"text_encoder_into",
- &["run", "cli/tests/testdata/text_encoder_into_perf.js"],
+ &[
+ "run",
+ "cli/tests/testdata/benches/text_encoder_into_perf.js",
+ ],
None,
),
(
"response_string",
- &["run", "cli/tests/testdata/response_string_perf.js"],
+ &["run", "cli/tests/testdata/benches/response_string_perf.js"],
None,
),
(