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

Function BM_Hash64Farm

tensorflow/core/lib/hash/hash_test.cc:354–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352BENCHMARK(BM_Hash64)->Range(1023, 1023);
353
354static void BM_Hash64Farm(int iters, int len) {
355 std::string input(len, 'x');
356 uint64 h = 0;
357 for (int i = 0; i < iters; i++) {
358 h = ::util::Fingerprint64(input.data(), input.size());
359 }
360 testing::BytesProcessed(static_cast<int64>(iters) * len);
361 VLOG(1) << h;
362}
363BENCHMARK(BM_Hash64Farm)->Range(8, 8);
364BENCHMARK(BM_Hash64Farm)->Range(16, 16);
365BENCHMARK(BM_Hash64Farm)->Range(32, 32);

Callers

nothing calls this directly

Calls 4

Fingerprint64Function · 0.85
BytesProcessedFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected