| 152 | } |
| 153 | |
| 154 | void BenchIndexedString::bench_qSet() |
| 155 | { |
| 156 | const QVector<uint> indices = setupTest(); |
| 157 | QSet<IndexedString> set; |
| 158 | QBENCHMARK { |
| 159 | for (uint index : indices) { |
| 160 | set.insert(IndexedString::fromIndex(index)); |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | static std::vector<IndexedString> createIndexedStrings(std::size_t count) |
| 166 | { |