tst_QDir_10000: add sorted_byName benchmark
Pick-to: 6.4 6.3 6.2 Change-Id: Ic30a6353c356f6613f2ef3720b99ebb3b0a7968e Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
0c54ac20eb
commit
24675d1a94
@ -141,6 +141,15 @@ private slots:
|
||||
}
|
||||
}
|
||||
|
||||
void sorted_byName()
|
||||
{
|
||||
QDir testdir(QDir::tempPath() + QLatin1String("/test_speed"));
|
||||
testdir.setFilter(QDir::AllEntries | QDir::System | QDir::Hidden);
|
||||
QBENCHMARK {
|
||||
[[maybe_unused]] auto r = testdir.entryInfoList(QDir::NoFilter, QDir::Name);
|
||||
}
|
||||
}
|
||||
|
||||
void sizeSpeedWithoutFilterLowLevel()
|
||||
{
|
||||
QDir testdir(QDir::tempPath() + QLatin1String("/test_speed"));
|
||||
|
Loading…
Reference in New Issue
Block a user