qt5base-lts/tests/benchmarks/corelib/io
Mårten Nordheim 399f815143 qdiriterator benchmark: test against std::filesystem
If c++17 is available and the header is available (not
experimental/filesystem) then we'll try
std::filesystem::recursive_directory_iterator as well.

Results on my PC (Windows, VS 2019):

PASS   : tst_qdiriterator::posix(C:\depot\qt\main/src/corelib)
RESULT : tst_qdiriterator::posix():"C:\depot\qt\main/src/corelib":
     23 msecs per iteration (total: 94, iterations: 4)
PASS   : tst_qdiriterator::diriterator(C:\depot\qt\main/src/corelib)
RESULT : tst_qdiriterator::diriterator():"C:\depot\qt\main/src/corelib":
     17 msecs per iteration (total: 71, iterations: 4)
PASS   : tst_qdiriterator::stdRecursiveDirectoryIterator(C:\depot\qt\main/src/corelib)
RESULT : tst_qdiriterator::stdRecursiveDirectoryIterator():"C:\depot\qt\main/src/corelib":
     6.7 msecs per iteration (total: 54, iterations: 8)
PASS   : tst_qdiriterator::fsiterator(C:\depot\qt\main/src/corelib)
RESULT : tst_qdiriterator::fsiterator():"C:\depot\qt\main/src/corelib":
     23 msecs per iteration (total: 92, iterations: 4)

And as a drive-by fix: move the 'data' function out of the private slots
so it is not invoked as a test function (it doesn't cause any problems
but is ultimately pointless).

Change-Id: Ia160ee276423ec51e35e554a4cd63d4d940c0e6a
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2019-10-21 12:40:49 +02:00
..
qdir Updated license headers 2016-01-21 18:55:18 +00:00
qdiriterator qdiriterator benchmark: test against std::filesystem 2019-10-21 12:40:49 +02:00
qfile Remove Windows CE from tests (others). 2016-03-31 06:14:04 +00:00
qfileinfo QFile/QFileInfo: mark readLink() as deprecated 2019-01-23 18:49:15 +00:00
qiodevice Improve QIODevice::peek() performance on buffered devices 2017-02-09 18:46:24 +00:00
qprocess Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
qtemporaryfile Updated license headers 2016-01-21 18:55:18 +00:00
qtextstream benchmarks: Fix copy and paste error in .pro-file 2018-11-08 21:34:08 +00:00
qurl Updated license headers 2016-01-21 18:55:18 +00:00
io.pro Properly use the "process" feature 2017-02-27 15:44:46 +00:00