| 339 | EXPECT_TRUE(hasher(s4) == hasher(s4)); |
| 340 | } |
| 341 | static void BM_Hash64(int iters, int len) { |
| 342 | std::string input(len, 'x'); |
| 343 | uint64 h = 0; |
| 344 | for (int i = 0; i < iters; i++) { |
| 345 | h = Hash64(input.data(), len, 1); |
| 346 | } |
| 347 | testing::BytesProcessed(static_cast<int64>(iters) * len); |
| 348 | VLOG(1) << h; |
| 349 | } |
| 350 | BENCHMARK(BM_Hash64)->Range(48, 48); |
| 351 | BENCHMARK(BM_Hash64)->Range(47, 47); |
| 352 | BENCHMARK(BM_Hash64)->Range(1023, 1023); |
nothing calls this directly
no test coverage detected