Simplify the KFileItemModel benchmark

The benchmark inserted KFileItemLists of different sizes in the model.
The intention was to verify that an O(N^2) complexity issue was fixed.
However, now that this original problem does not exist any more, the
benchmark results are much easier to read, and regressions are much
easier to spot at first sight, if only a single list size is used.
This commit is contained in:
Frank Reininghaus 2015-05-07 21:06:42 +01:00
parent c035fb0a5c
commit 5bde333ca7

View file

@ -81,8 +81,7 @@ void KFileItemModelBenchmark::insertAndRemoveManyItems_data()
QTest::addColumn<KItemRangeList>("expectedItemsRemoved");
QList<int> sizes;
sizes << 1000 << 4000 << 16000 << 64000 << 256000;
//sizes << 50000 << 100000 << 150000 << 200000 << 250000;
sizes << 100000;
foreach (int n, sizes) {
QStringList allStrings;