diff options
-rw-r--r-- | tests/dummyresourcebenchmark.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp index ed448f0..15b3e29 100644 --- a/tests/dummyresourcebenchmark.cpp +++ b/tests/dummyresourcebenchmark.cpp | |||
@@ -79,7 +79,7 @@ private Q_SLOTS: | |||
79 | { | 79 | { |
80 | QTime time; | 80 | QTime time; |
81 | time.start(); | 81 | time.start(); |
82 | int num = 10000; | 82 | int num = 100; |
83 | QList<KAsync::Future<void> > waitCondition; | 83 | QList<KAsync::Future<void> > waitCondition; |
84 | for (int i = 0; i < num; i++) { | 84 | for (int i = 0; i < num; i++) { |
85 | Akonadi2::ApplicationDomain::Event event; | 85 | Akonadi2::ApplicationDomain::Event event; |
@@ -126,10 +126,9 @@ private Q_SLOTS: | |||
126 | { | 126 | { |
127 | QTime time; | 127 | QTime time; |
128 | time.start(); | 128 | time.start(); |
129 | int num = 10000; | 129 | int num = 100; |
130 | 130 | ||
131 | auto pipeline = QSharedPointer<Akonadi2::Pipeline>::create("org.kde.dummy.instance1"); | 131 | auto pipeline = QSharedPointer<Akonadi2::Pipeline>::create("org.kde.dummy.instance1"); |
132 | QSignalSpy revisionSpy(pipeline.data(), SIGNAL(revisionUpdated())); | ||
133 | DummyResource resource("org.kde.dummy.instance1", pipeline); | 132 | DummyResource resource("org.kde.dummy.instance1", pipeline); |
134 | 133 | ||
135 | flatbuffers::FlatBufferBuilder eventFbb; | 134 | flatbuffers::FlatBufferBuilder eventFbb; |
@@ -175,8 +174,8 @@ private Q_SLOTS: | |||
175 | 174 | ||
176 | auto allProcessedTime = time.elapsed(); | 175 | auto allProcessedTime = time.elapsed(); |
177 | 176 | ||
178 | std::cout << "Append to messagequeue " << appendTime << std::endl; | 177 | std::cout << "Append to messagequeue " << appendTime << " /sec " << num*1000/appendTime << std::endl; |
179 | std::cout << "All processed: " << allProcessedTime << "/sec " << num*1000/allProcessedTime << std::endl; | 178 | std::cout << "All processed: " << allProcessedTime << " /sec " << num*1000/allProcessedTime << std::endl; |
180 | } | 179 | } |
181 | 180 | ||
182 | void testCreateCommand() | 181 | void testCreateCommand() |