diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-11 01:06:54 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-11 01:06:54 +0100 |
commit | ee6f068dff6b15441e553ffbfb2bf8aa97b26f57 (patch) | |
tree | fe870a93562173141ed47ed0e21c6d027f88fdef /tests/storagebenchmark.cpp | |
parent | 47a964b5339b4e2763c345e74d626309a83802f5 (diff) | |
download | sink-ee6f068dff6b15441e553ffbfb2bf8aa97b26f57.tar.gz sink-ee6f068dff6b15441e553ffbfb2bf8aa97b26f57.zip |
shhh
Diffstat (limited to 'tests/storagebenchmark.cpp')
-rw-r--r-- | tests/storagebenchmark.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/storagebenchmark.cpp b/tests/storagebenchmark.cpp index ba14990..130753f 100644 --- a/tests/storagebenchmark.cpp +++ b/tests/storagebenchmark.cpp | |||
@@ -152,7 +152,7 @@ private Q_SLOTS: | |||
152 | int hit = 0; | 152 | int hit = 0; |
153 | store->scan("", [&](void *keyValue, int keySize, void *dataValue, int dataSize) -> bool { | 153 | store->scan("", [&](void *keyValue, int keySize, void *dataValue, int dataSize) -> bool { |
154 | if (std::string(static_cast<char*>(keyValue), keySize) == "key10000") { | 154 | if (std::string(static_cast<char*>(keyValue), keySize) == "key10000") { |
155 | qDebug() << "hit"; | 155 | //qDebug() << "hit"; |
156 | hit++; | 156 | hit++; |
157 | } | 157 | } |
158 | return true; | 158 | return true; |
@@ -168,9 +168,11 @@ private Q_SLOTS: | |||
168 | QBENCHMARK { | 168 | QBENCHMARK { |
169 | int hit = 0; | 169 | int hit = 0; |
170 | store->scan("key40000", [&](void *keyValue, int keySize, void *dataValue, int dataSize) -> bool { | 170 | store->scan("key40000", [&](void *keyValue, int keySize, void *dataValue, int dataSize) -> bool { |
171 | /* | ||
171 | if (std::string(static_cast<char*>(keyValue), keySize) == "foo") { | 172 | if (std::string(static_cast<char*>(keyValue), keySize) == "foo") { |
172 | qDebug() << "hit"; | 173 | qDebug() << "hit"; |
173 | } | 174 | } |
175 | */ | ||
174 | hit++; | 176 | hit++; |
175 | return true; | 177 | return true; |
176 | }); | 178 | }); |