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

Function generateData

kdevplatform/serialization/tests/bench_indexedstring.cpp:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23using namespace KDevelop;
24
25static QVector<QString> generateData()
26{
27 QVector<QString> data;
28 static const int NUM_ITEMS = 100000;
29 data.resize(NUM_ITEMS);
30 for (int i = 0; i < NUM_ITEMS; ++i) {
31 data[i] = QStringLiteral("/foo/%1").arg(i);
32 }
33
34 return data;
35}
36
37void BenchIndexedString::bench_index()
38{

Callers 5

bench_indexMethod · 0.70
setupTestFunction · 0.70
bench_qhashQStringMethod · 0.70
bench_hashStringMethod · 0.70
bench_kdevhashMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected