MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_hash_perf

Function test_hash_perf

dpdk/app/test/test_hash_perf.c:726–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726static int
727test_hash_perf(void)
728{
729 unsigned int with_pushes, with_locks;
730
731 if (RTE_EXEC_ENV_IS_WINDOWS)
732 return TEST_SKIPPED;
733
734 for (with_locks = 0; with_locks <= 1; with_locks++) {
735 if (with_locks)
736 printf("\nWith locks in the code\n");
737 else
738 printf("\nWithout locks in the code\n");
739 for (with_pushes = 0; with_pushes <= 1; with_pushes++) {
740 if (with_pushes == 0)
741 printf("\nALL ELEMENTS IN PRIMARY LOCATION\n");
742 else
743 printf("\nELEMENTS IN PRIMARY OR SECONDARY LOCATION\n");
744 if (run_all_tbl_perf_tests(with_pushes, with_locks, 0) < 0)
745 return -1;
746 }
747 }
748
749 printf("\n EXTENDABLE BUCKETS PERFORMANCE\n");
750
751 if (run_all_tbl_perf_tests(1, 0, 1) < 0)
752 return -1;
753
754 if (fbk_hash_perf_test() < 0)
755 return -1;
756
757 return 0;
758}
759
760REGISTER_PERF_TEST(hash_perf_autotest, test_hash_perf);

Callers

nothing calls this directly

Calls 3

fbk_hash_perf_testFunction · 0.85
run_all_tbl_perf_testsFunction · 0.70
printfFunction · 0.50

Tested by

no test coverage detected