[dpdk-dev] [PATCH v2 1/1] app/test-compress-perf: report header improvement

Jerin Jacob Kollanukkaran jerinj at marvell.com
Fri Jul 5 08:53:36 CEST 2019



> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Artur Trybula
> Sent: Friday, July 5, 2019 12:00 PM
> To: dev at dpdk.org; fiona.trahe at intel.com;
> shally.verma at caviumnetworks.com; adamx.dybkowski at intel.com;
> arturx.trybula at intel.com; akhil.goyal at nxp.com
> 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 <arturx.trybula at intel.com>
> ---
>  .../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;



More information about the dev mailing list