Skip to content

Commit dfd2f63

Browse files
committed
[libc++] Address PR feedback
1 parent aeeccda commit dfd2f63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libcxx/test/benchmarks/filesystem.bench.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,11 @@ BENCHMARK_CAPTURE(BM_LexicallyNormal, large_path, getRandomPaths, /*PathLen*/ 32
173173

174174
template <class GenInput>
175175
void BM_LexicallyRelative(benchmark::State& st, GenInput gen, size_t PathLen) {
176-
using fs::path;
177176
auto BasePath = gen(st.range(0), PathLen);
178177
auto TargetPath = gen(st.range(0), PathLen);
179178
benchmark::DoNotOptimize(&BasePath);
180179
benchmark::DoNotOptimize(&TargetPath);
181-
while (st.KeepRunning()) {
180+
for (auto _ : st) {
182181
benchmark::DoNotOptimize(TargetPath.lexically_relative(BasePath));
183182
}
184183
st.SetComplexityN(st.range(0));

0 commit comments

Comments
 (0)