MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / BM_CRC

Function BM_CRC

tensorflow/core/lib/hash/crc32c_test.cc:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82#endif
83
84static 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}
93BENCHMARK(BM_CRC)->Range(1, 256 * 1024);
94
95} // namespace crc32c

Callers

nothing calls this directly

Calls 3

ExtendFunction · 0.85
BytesProcessedFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected