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

Function BM_Hash64BatchX4

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

Source from the content-addressed store, hash-verified

370BENCHMARK(BM_Hash64Farm)->Range(1024, 1024);
371
372static void BM_Hash64BatchX4(int iters, int len) {
373 std::string input_0(len, 'x');
374 std::string input_1(len, 'x');
375 std::string input_2(len, 'x');
376 std::string input_3(len, 'x');
377 uint64 h_0 = 0;
378 uint64 h_1 = 0;
379 uint64 h_2 = 0;
380 uint64 h_3 = 0;
381 for (int i = 0; i < iters; i++) {
382 h_0 = Hash64(input_0.data(), len, 1);
383 h_1 = Hash64(input_1.data(), len, 1);
384 h_2 = Hash64(input_2.data(), len, 1);
385 h_3 = Hash64(input_3.data(), len, 1);
386 }
387 testing::BytesProcessed(static_cast<int64>(iters) * len * 4);
388 VLOG(1) << h_0;
389}
390BENCHMARK(BM_Hash64BatchX4)->Range(1, 1024);
391
392static void BM_Hash64V3(int iters, int len) {

Callers

nothing calls this directly

Calls 3

BytesProcessedFunction · 0.85
Hash64Function · 0.70
dataMethod · 0.45

Tested by

no test coverage detected