]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Simplify the KFileItemModel benchmark
authorFrank Reininghaus <frank78ac@googlemail.com>
Thu, 7 May 2015 20:06:42 +0000 (21:06 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Thu, 7 May 2015 20:06:42 +0000 (22:06 +0200)
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.

src/tests/kfileitemmodelbenchmark.cpp

index 3ff0405fdc187b923ca9b7ee7a7ac352029fba9f..41dcce01966ecc0f1374c72beaa5465474137b09 100644 (file)
@@ -81,8 +81,7 @@ void KFileItemModelBenchmark::insertAndRemoveManyItems_data()
     QTest::addColumn<KItemRangeList>("expectedItemsRemoved");
 
     QList<int> sizes;
     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;
 
     foreach (int n, sizes) {
         QStringList allStrings;