| 173 | } |
| 174 | |
| 175 | void BenchHashes::remove() |
| 176 | { |
| 177 | QFETCH(bool, useStl); |
| 178 | QFETCH(const InputData, data); |
| 179 | |
| 180 | if (useStl) { |
| 181 | StlHash hash; |
| 182 | insertData(hash, data); |
| 183 | QBENCHMARK { |
| 184 | for (const DataPair& pair : data) { |
| 185 | hash.erase(pair.first); |
| 186 | } |
| 187 | } |
| 188 | } else { |
| 189 | QStringHash hash; |
| 190 | insertData(hash, data); |
| 191 | QBENCHMARK { |
| 192 | for (const DataPair& pair : data) { |
| 193 | hash.remove(pair.first); |
| 194 | } |
| 195 | } |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | void BenchHashes::remove_data() |
| 200 | { |
no test coverage detected