summaryrefslogtreecommitdiffstats
path: root/tests/storagebenchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/storagebenchmark.cpp')
-rw-r--r--tests/storagebenchmark.cpp4
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 });