| 370 | BENCHMARK(BM_Hash64Farm)->Range(1024, 1024); |
| 371 | |
| 372 | static void BM_Hash64BatchX4(int iters, int len) { |
| 373 | std::string input_0(len, 'x'); |
| 374 | std::string input_1(len, 'x'); |
| 375 | std::string input_2(len, 'x'); |
| 376 | std::string input_3(len, 'x'); |
| 377 | uint64 h_0 = 0; |
| 378 | uint64 h_1 = 0; |
| 379 | uint64 h_2 = 0; |
| 380 | uint64 h_3 = 0; |
| 381 | for (int i = 0; i < iters; i++) { |
| 382 | h_0 = Hash64(input_0.data(), len, 1); |
| 383 | h_1 = Hash64(input_1.data(), len, 1); |
| 384 | h_2 = Hash64(input_2.data(), len, 1); |
| 385 | h_3 = Hash64(input_3.data(), len, 1); |
| 386 | } |
| 387 | testing::BytesProcessed(static_cast<int64>(iters) * len * 4); |
| 388 | VLOG(1) << h_0; |
| 389 | } |
| 390 | BENCHMARK(BM_Hash64BatchX4)->Range(1, 1024); |
| 391 | |
| 392 | static void BM_Hash64V3(int iters, int len) { |
nothing calls this directly
no test coverage detected