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

Function BM_Hash32

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

Source from the content-addressed store, hash-verified

308}
309
310static void BM_Hash32(int iters, int len) {
311 std::string input(len, 'x');
312 uint32 h = 0;
313 for (int i = 0; i < iters; i++) {
314 h = Hash32(input.data(), len, 1);
315 }
316 testing::BytesProcessed(static_cast<int64>(iters) * len);
317 VLOG(1) << h;
318}
319BENCHMARK(BM_Hash32)->Range(1, 1024);
320
321TEST(StringPieceHasher, Equality) {

Callers

nothing calls this directly

Calls 3

Hash32Function · 0.85
BytesProcessedFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected