From 5bde333ca7e9c285f1101bac0434fb4e60b6d4d5 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Thu, 7 May 2015 21:06:42 +0100 Subject: [PATCH] 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. --- src/tests/kfileitemmodelbenchmark.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tests/kfileitemmodelbenchmark.cpp b/src/tests/kfileitemmodelbenchmark.cpp index 3ff0405fd..41dcce019 100644 --- a/src/tests/kfileitemmodelbenchmark.cpp +++ b/src/tests/kfileitemmodelbenchmark.cpp @@ -81,8 +81,7 @@ void KFileItemModelBenchmark::insertAndRemoveManyItems_data() QTest::addColumn("expectedItemsRemoved"); QList sizes; - sizes << 1000 << 4000 << 16000 << 64000 << 256000; - //sizes << 50000 << 100000 << 150000 << 200000 << 250000; + sizes << 100000; foreach (int n, sizes) { QStringList allStrings;