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

Function print_enc_throughput

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

Source from the content-addressed store, hash-verified

4783}
4784
4785static void
4786print_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 */
4805static void

Callers 1

throughput_testFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected