| 308 | } |
| 309 | |
| 310 | static void BM_Hash32(int iters, int len) { |
| 311 | std::string input(len, 'x'); |
| 312 | uint32 h = 0; |
| 313 | for (int i = 0; i < iters; i++) { |
| 314 | h = Hash32(input.data(), len, 1); |
| 315 | } |
| 316 | testing::BytesProcessed(static_cast<int64>(iters) * len); |
| 317 | VLOG(1) << h; |
| 318 | } |
| 319 | BENCHMARK(BM_Hash32)->Range(1, 1024); |
| 320 | |
| 321 | TEST(StringPieceHasher, Equality) { |
nothing calls this directly
no test coverage detected