| 82 | #endif |
| 83 | |
| 84 | static void BM_CRC(int iters, int len) { |
| 85 | std::string input(len, 'x'); |
| 86 | uint32 h = 0; |
| 87 | for (int i = 0; i < iters; i++) { |
| 88 | h = Extend(h, input.data() + 1, len - 1); |
| 89 | } |
| 90 | testing::BytesProcessed(static_cast<int64>(iters) * len); |
| 91 | VLOG(1) << h; |
| 92 | } |
| 93 | BENCHMARK(BM_CRC)->Range(1, 256 * 1024); |
| 94 | |
| 95 | } // namespace crc32c |
nothing calls this directly
no test coverage detected