mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Make the filesystem benchmark test less expensive (#7794)
While some of the slowness here is unrelated, there isn't really any reason to test even as much of the benchmark as it is.
This commit is contained in:
@@ -444,9 +444,9 @@ auto BM_CreateDirectories(benchmark::State& state) -> void {
|
||||
CARBON_CHECK(existing_depth <= depth);
|
||||
CARBON_CHECK(depth > 0);
|
||||
|
||||
// Use a batch size of 10 to get avoid completely swamping the measurements
|
||||
// Use a batch size of 5 to get avoid completely swamping the measurements
|
||||
// with overhead from creating existing directories and cleaning up.
|
||||
constexpr int BatchSize = 10;
|
||||
constexpr int BatchSize = 5;
|
||||
|
||||
// Pre-build both the paths and the existing paths. Note that we use
|
||||
// relatively short paths here, which if anything makes the benefits of the
|
||||
|
||||
Reference in New Issue
Block a user