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

Function BM_Hash64

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

Source from the content-addressed store, hash-verified

339 EXPECT_TRUE(hasher(s4) == hasher(s4));
340}
341static 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}
350BENCHMARK(BM_Hash64)->Range(48, 48);
351BENCHMARK(BM_Hash64)->Range(47, 47);
352BENCHMARK(BM_Hash64)->Range(1023, 1023);

Callers

nothing calls this directly

Calls 3

BytesProcessedFunction · 0.85
Hash64Function · 0.70
dataMethod · 0.45

Tested by

no test coverage detected