Aggregate the performance results over the number of cores used */
| 4803 | |
| 4804 | /* Aggregate the performance results over the number of cores used */ |
| 4805 | static void |
| 4806 | print_dec_throughput(struct thread_params *t_params, unsigned int used_cores) |
| 4807 | { |
| 4808 | unsigned int core_idx = 0; |
| 4809 | double total_mops = 0, total_mbps = 0; |
| 4810 | uint8_t iter_count = 0; |
| 4811 | |
| 4812 | for (core_idx = 0; core_idx < used_cores; core_idx++) { |
| 4813 | printf( |
| 4814 | "Throughput for core (%u): %.8lg Ops/s, %.8lg Mbps @ max %u iterations\n", |
| 4815 | t_params[core_idx].lcore_id, |
| 4816 | t_params[core_idx].ops_per_sec, |
| 4817 | t_params[core_idx].mbps, |
| 4818 | t_params[core_idx].iter_count); |
| 4819 | total_mops += t_params[core_idx].ops_per_sec; |
| 4820 | total_mbps += t_params[core_idx].mbps; |
| 4821 | iter_count = RTE_MAX(iter_count, |
| 4822 | t_params[core_idx].iter_count); |
| 4823 | } |
| 4824 | printf( |
| 4825 | "\nTotal throughput for %u cores: %.8lg MOPS, %.8lg Mbps @ max %u iterations\n", |
| 4826 | used_cores, total_mops, total_mbps, iter_count); |
| 4827 | } |
| 4828 | |
| 4829 | /* Aggregate the performance results over the number of cores used */ |
| 4830 | static void |
no test coverage detected