qt6-bb10/tests/benchmarks/corelib/io/qdir
David Faure eae031d5c3 Fix QDir benchmark to do meaningful things
* Include the creation of the QDir inside QBENCHMARK, otherwise
  the it can hit the cached code path where subsequent runs return
  results much faster.

* Same for the opendir()/readdir() test: if opendir() isn't called
  again, readdir() will just return null right away.

These two issues led to nonsense results like 0.00025 msecs per
iteration, doing nothing is really quick.

While at it, port the cleanup code to QDir::removeRecursively()

Pick-to: 6.5 6.4 6.2
Change-Id: Ic1bdd92d41efe1f6d0eaaa33eca066cb7d19fc93
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-02-07 13:33:01 +01:00
..
10000 Fix QDir benchmark to do meaningful things 2023-02-07 13:33:01 +01:00
tree Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
CMakeLists.txt Standardise layout and naming in corelib benchmarks 2021-08-30 19:21:08 +02:00