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

Function print_metrics

dpdk/app/test/test_ipsec_perf.c:532–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532static void
533print_metrics(const struct ipsec_test_cfg *test_cfg,
534 struct ipsec_sa *sa_out, struct ipsec_sa *sa_in)
535{
536 printf("\nMetrics of libipsec prepare/process api:\n");
537
538 printf("replay window size = %u\n", test_cfg->replay_win_sz);
539 if (test_cfg->esn)
540 printf("replay esn is enabled\n");
541 else
542 printf("replay esn is disabled\n");
543 if (test_cfg->type == RTE_CRYPTO_SYM_XFORM_AEAD)
544 printf("AEAD algo is AES_GCM\n");
545 else
546 printf("CIPHER/AUTH algo is AES_CBC/SHA1\n");
547
548
549 printf("avg cycles for a pkt prepare in outbound is = %.2Lf\n",
550 (long double)sa_out->cnt.prepare_ticks_elapsed
551 / sa_out->cnt.nb_prepare_pkt);
552 printf("avg cycles for a pkt process in outbound is = %.2Lf\n",
553 (long double)sa_out->cnt.process_ticks_elapsed
554 / sa_out->cnt.nb_process_pkt);
555 printf("avg cycles for a pkt prepare in inbound is = %.2Lf\n",
556 (long double)sa_in->cnt.prepare_ticks_elapsed
557 / sa_in->cnt.nb_prepare_pkt);
558 printf("avg cycles for a pkt process in inbound is = %.2Lf\n",
559 (long double)sa_in->cnt.process_ticks_elapsed
560 / sa_in->cnt.nb_process_pkt);
561
562}
563
564static void
565testsuite_teardown(void)

Callers 1

test_libipsec_perfFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected