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

Function setupTest

kdevplatform/serialization/tests/bench_indexedstring.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48static QVector<uint> setupTest()
49{
50 const QVector<QString> data = generateData();
51 QVector<uint> indices;
52 indices.reserve(data.size());
53 for (const QString& item : data) {
54 IndexedString idx(item);
55 indices << idx.index();
56 }
57
58 return indices;
59}
60
61void BenchIndexedString::bench_length()
62{

Callers 5

bench_lengthMethod · 0.85
bench_qstringMethod · 0.85
bench_kurlMethod · 0.85
bench_qSetMethod · 0.85

Calls 4

generateDataFunction · 0.70
reserveMethod · 0.45
sizeMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected