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

Method bench_qSet

kdevplatform/serialization/tests/bench_indexedstring.cpp:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void BenchIndexedString::bench_qSet()
155{
156 const QVector<uint> indices = setupTest();
157 QSet<IndexedString> set;
158 QBENCHMARK {
159 for (uint index : indices) {
160 set.insert(IndexedString::fromIndex(index));
161 }
162 }
163}
164
165static std::vector<IndexedString> createIndexedStrings(std::size_t count)
166{

Callers

nothing calls this directly

Calls 3

setupTestFunction · 0.85
fromIndexFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected