bbdev: enhance throughput test
authorKamil Chalupnik <kamilx.chalupnik@intel.com>
Fri, 7 Dec 2018 15:15:32 +0000 (16:15 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 19 Dec 2018 10:19:10 +0000 (11:19 +0100)
commit0b98d574e3e58da446ba67aa96901642b31b22d0
tree3e9efe12ac5da048f66506d69fd01d60bec00791
parent9fa6ebde8e6391e567eec16a652ae33aa64cb800
bbdev: enhance throughput test

Improvements added to throughput test:
- test is run in loop (number of iterations is specified by
TEST_REPETITIONS define) which ensures more accurate results
- length of input data is calculated based on amount of CBs in TB
- maximum number of decoding iterations is gathered from results
- added new functions responsible for printing results
- small fixes for memory management

Signed-off-by: Kamil Chalupnik <kamilx.chalupnik@intel.com>
Acked-by: Amr Mokhtar <amr.mokhtar@intel.com>
app/test-bbdev/main.c
app/test-bbdev/test_bbdev_perf.c
app/test-bbdev/test_bbdev_vector.c
lib/librte_bbdev/rte_bbdev_op.h