diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-22 10:42:37 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-22 10:42:37 +0100 |
commit | 31dbc0cba9e5acfaeca41679873b17e11ceab811 (patch) | |
tree | ceabdf4f92666d92c72e9382c8c0c80bed23b837 /tests/databasepopulationandfacadequerybenchmark.cpp | |
parent | e5125013a2661b30f21323f1a3f925103e8d589f (diff) | |
download | sink-31dbc0cba9e5acfaeca41679873b17e11ceab811.tar.gz sink-31dbc0cba9e5acfaeca41679873b17e11ceab811.zip |
Only load the properties we need.
...and adjust the test accordingly with what we expect.
Diffstat (limited to 'tests/databasepopulationandfacadequerybenchmark.cpp')
-rw-r--r-- | tests/databasepopulationandfacadequerybenchmark.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/databasepopulationandfacadequerybenchmark.cpp b/tests/databasepopulationandfacadequerybenchmark.cpp index 9a06710..5a96bdd 100644 --- a/tests/databasepopulationandfacadequerybenchmark.cpp +++ b/tests/databasepopulationandfacadequerybenchmark.cpp | |||
@@ -133,9 +133,9 @@ class DatabasePopulationAndFacadeQueryBenchmark : public QObject | |||
133 | mRssGrowthPerEntity << rssGrowthPerEntity; | 133 | mRssGrowthPerEntity << rssGrowthPerEntity; |
134 | 134 | ||
135 | QVERIFY(percentageRssError < 10); | 135 | QVERIFY(percentageRssError < 10); |
136 | //This shouldn't include the attachment (but currently does) | 136 | //TODO This is much more than it should it seems, although adding the attachment results in pretty exactly a 1k increase, |
137 | QEXPECT_FAIL("", "We're loading the attachment", Continue); | 137 | //so it doesn't look like that memory is being duplicated. |
138 | QVERIFY(rssGrowthPerEntity < 2000); | 138 | QVERIFY(rssGrowthPerEntity < 3300); |
139 | 139 | ||
140 | // Print memory layout, RSS is what is in memory | 140 | // Print memory layout, RSS is what is in memory |
141 | // std::system("exec pmap -x \"$PPID\""); | 141 | // std::system("exec pmap -x \"$PPID\""); |