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

Method bench_index

kdevplatform/serialization/tests/bench_indexedstring.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void BenchIndexedString::bench_index()
38{
39 const QVector<QString> data = generateData();
40 QBENCHMARK {
41 for (const QString& item : data) {
42 IndexedString idx(item);
43 Q_UNUSED(idx);
44 }
45 }
46}
47
48static QVector<uint> setupTest()
49{

Callers

nothing calls this directly

Calls 1

generateDataFunction · 0.70

Tested by

no test coverage detected