aboutsummaryrefslogtreecommitdiff
path: root/crates/test_utils
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-02-27 14:39:22 +0000
committerGitHub <[email protected]>2021-02-27 14:39:22 +0000
commita8cf346b972b5e79a3b18de5a7f71e49a228be7c (patch)
tree4a51bdb8a2d84cc0b02aa41ed1073a1a16c039b4 /crates/test_utils
parent4a24edd989720f1232d8f6a660d790ae77115964 (diff)
parent23dbf36c7dfcbb43a0def2642287c2fb30864a07 (diff)
Merge #7566
7566: Add benchmark tests for mbe r=matklad a=edwin0cheng This PR add more real world tests dumped from `rust-analyzer analysis-stats .` to benchmark its performance. cc #7513 r? @matklad Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/test_utils')
-rw-r--r--crates/test_utils/src/bench_fixture.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/test_utils/src/bench_fixture.rs b/crates/test_utils/src/bench_fixture.rs
index aa1bea9bb..d775e2cc9 100644
--- a/crates/test_utils/src/bench_fixture.rs
+++ b/crates/test_utils/src/bench_fixture.rs
@@ -35,3 +35,8 @@ pub fn glorious_old_parser() -> String {
35 let path = project_dir().join("bench_data/glorious_old_parser"); 35 let path = project_dir().join("bench_data/glorious_old_parser");
36 fs::read_to_string(&path).unwrap() 36 fs::read_to_string(&path).unwrap()
37} 37}
38
39pub fn numerous_macro_rules() -> String {
40 let path = project_dir().join("bench_data/numerous_macro_rules");
41 fs::read_to_string(&path).unwrap()
42}