| 4783 | } |
| 4784 | |
| 4785 | static void |
| 4786 | print_enc_throughput(struct thread_params *t_params, unsigned int used_cores) |
| 4787 | { |
| 4788 | unsigned int iter = 0; |
| 4789 | double total_mops = 0, total_mbps = 0; |
| 4790 | |
| 4791 | for (iter = 0; iter < used_cores; iter++) { |
| 4792 | printf( |
| 4793 | "Throughput for core (%u): %.8lg Ops/s, %.8lg Mbps\n", |
| 4794 | t_params[iter].lcore_id, t_params[iter].ops_per_sec, |
| 4795 | t_params[iter].mbps); |
| 4796 | total_mops += t_params[iter].ops_per_sec; |
| 4797 | total_mbps += t_params[iter].mbps; |
| 4798 | } |
| 4799 | printf( |
| 4800 | "\nTotal throughput for %u cores: %.8lg MOPS, %.8lg Mbps\n", |
| 4801 | used_cores, total_mops, total_mbps); |
| 4802 | } |
| 4803 | |
| 4804 | /* Aggregate the performance results over the number of cores used */ |
| 4805 | static void |
no test coverage detected