| 724 | } |
| 725 | |
| 726 | static int |
| 727 | test_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 | |
| 760 | REGISTER_PERF_TEST(hash_perf_autotest, test_hash_perf); |
nothing calls this directly
no test coverage detected