> -----Original Message----- > From: dev <[email protected]> On Behalf Of Artur Trybula > Sent: Friday, July 5, 2019 12:00 PM > To: [email protected]; [email protected]; > [email protected]; [email protected]; > [email protected]; [email protected] > Subject: [dpdk-dev] [PATCH v2 1/1] app/test-compress-perf: report header > improvement > > This patch adds extra features to the compress performance test. Some > important parameters (memory allocation, number of ops, number of > segments) are calculated and printed out on the screen. > > Signed-off-by: Artur Trybula <[email protected]> > --- > .../comp_perf_test_common.c | 94 ++++++++++++++++++- > .../comp_perf_test_common.h | 3 + > app/test-compress-perf/main.c | 4 +- > 3 files changed, 98 insertions(+), 3 deletions(-) > > diff --git a/app/test-compress-perf/comp_perf_test_common.c b/app/test- > compress-perf/comp_perf_test_common.c > index dc9d0b0f4..dc3eaccac 100644 > --- a/app/test-compress-perf/comp_perf_test_common.c > +++ b/app/test-compress-perf/comp_perf_test_common.c > @@ -15,6 +15,19 @@ > > #define DIV_CEIL(a, b) ((a) / (b) + ((a) % (b) != 0)) > > +struct performance_tests_results { > + uint16_t total_segments; > + uint16_t segment_sz; > + uint16_t last_segment_sz; > + uint32_t total_buffs; /*number of buffers = number of ops*/ > + uint16_t segments_per_buff; > + uint16_t segments_per_last_buff; > + size_t input_data_sz; > +}; > + > +static struct performance_tests_results tests_res; //extern static
Spotted C++ style commented unused code. > +struct performance_tests_results tests_res;

