diff options
Diffstat (limited to 'benchmark')
| -rw-r--r-- | benchmark/bench_misc.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/benchmark/bench_misc.cpp b/benchmark/bench_misc.cpp index 1cbbbe170..8345438f7 100644 --- a/benchmark/bench_misc.cpp +++ b/benchmark/bench_misc.cpp @@ -244,7 +244,13 @@ class WalkPathBench final : public td::Benchmark { } void run(int n) final { int cnt = 0; - td::rmrf("A/").ignore(); + td::walk_path("A/", [&](td::CSlice path, auto type) { + if (type == td::WalkPath::Type::EnterDir) { + return; + } + td::stat(path).ok(); + cnt++; + }).ignore(); } void tear_down() final { td::rmrf("A/").ignore(); |
