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

Function print_dec_bler

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

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

Source from the content-addressed store, hash-verified

4828
4829/* Aggregate the performance results over the number of cores used */
4830static void
4831print_dec_bler(struct thread_params *t_params, unsigned int used_cores)
4832{
4833 unsigned int core_idx = 0;
4834 double total_mbps = 0, total_bler = 0, total_iter = 0;
4835 double snr = get_snr();
4836
4837 for (core_idx = 0; core_idx < used_cores; core_idx++) {
4838 printf("Core%u BLER %.1f %% - Iters %.1f - Tp %.1f Mbps %s\n",
4839 t_params[core_idx].lcore_id,
4840 t_params[core_idx].bler * 100,
4841 t_params[core_idx].iter_average,
4842 t_params[core_idx].mbps,
4843 get_vector_filename());
4844 total_mbps += t_params[core_idx].mbps;
4845 total_bler += t_params[core_idx].bler;
4846 total_iter += t_params[core_idx].iter_average;
4847 }
4848 total_bler /= used_cores;
4849 total_iter /= used_cores;
4850
4851 printf("SNR %.2f BLER %.1f %% - Iterations %.1f %d - Tp %.3f Mbps %s\n",
4852 snr, total_bler * 100, total_iter, get_iter_max(),
4853 total_mbps, get_vector_filename());
4854}
4855
4856/*
4857 * Test function that determines BLER wireless performance

Callers 1

bler_testFunction · 0.85

Calls 4

get_snrFunction · 0.85
get_vector_filenameFunction · 0.85
get_iter_maxFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected