Skip to content

Commit

Permalink
Update "rust" repo benchmark to parse compiler and standard library only
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Apr 1, 2023
1 parent 2546432 commit ced12d4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions benches/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,13 @@ fn exec(mut codepath: impl FnMut(&str) -> Result<(), ()>) -> Duration {
let mut success = 0;
let mut total = 0;

walkdir::WalkDir::new("tests/rust/src")
.into_iter()
.filter_entry(repo::base_dir_filter)
["tests/rust/compiler", "tests/rust/library"]
.iter()
.flat_map(|dir| {
walkdir::WalkDir::new(dir)
.into_iter()
.filter_entry(repo::base_dir_filter)
})
.for_each(|entry| {
let entry = entry.unwrap();
let path = entry.path();
Expand Down

0 comments on commit ced12d4

Please sign in to comment.