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

Function print_dec_throughput

dpdk/app/test-bbdev/test_bbdev_perf.c:4805–4827  ·  view source on GitHub ↗

Aggregate the performance results over the number of cores used */

Source from the content-addressed store, hash-verified

4803
4804/* Aggregate the performance results over the number of cores used */
4805static void
4806print_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 */
4830static void

Callers 1

throughput_testFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected