| 59 | } |
| 60 | |
| 61 | void 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 | |
| 72 | void BenchIndexedString::bench_qstring() |
| 73 | { |