MCPcopy Create free account
hub / github.com/KDE/kdevelop / constFind

Method constFind

kdevplatform/language/duchain/tests/bench_hashes.cpp:145–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void BenchHashes::constFind()
146{
147 QFETCH(bool, useStl);
148 QFETCH(const InputData, data);
149
150 if (useStl) {
151 StlHash hash;
152 insertData(hash, data);
153 const StlHash& constHash = hash;
154 QBENCHMARK {
155 for (const DataPair& pair : data) {
156 ( void ) constHash.find(pair.first);
157 }
158 }
159 } else {
160 QStringHash hash;
161 insertData(hash, data);
162 QBENCHMARK {
163 for (const DataPair& pair : data) {
164 ( void ) hash.constFind(pair.first);
165 }
166 }
167 }
168}
169
170void BenchHashes::constFind_data()
171{

Callers 15

verifyBreakpointMethod · 0.45
languagesForFileNameMethod · 0.45
languageMethod · 0.45
languagesForMimetypeMethod · 0.45
reparseProjectMethod · 0.45
initializeMethod · 0.45
changeDocumentUrlMethod · 0.45
configureShortcutsMethod · 0.45
showMessageMethod · 0.45
slotTransactionAddedMethod · 0.45
slotTransactionStatusMethod · 0.45

Calls 2

insertDataFunction · 0.70
findMethod · 0.45

Tested by

no test coverage detected