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

Method bench_length

kdevplatform/serialization/tests/bench_indexedstring.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void BenchIndexedString::bench_length()
62{
63 const QVector<uint> indices = setupTest();
64 QBENCHMARK {
65 for (uint index : indices) {
66 IndexedString str = IndexedString::fromIndex(index);
67 str.length();
68 }
69 }
70}
71
72void BenchIndexedString::bench_qstring()
73{

Callers

nothing calls this directly

Calls 3

setupTestFunction · 0.85
fromIndexFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected