From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 2646F1B560 for ; Fri, 23 Nov 2018 14:07:01 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Nov 2018 05:07:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,269,1539673200"; d="scan'208";a="110565176" Received: from tjozwiax-mobl.ger.corp.intel.com (HELO localhost.localdomain) ([10.103.104.46]) by fmsmga001.fm.intel.com with ESMTP; 23 Nov 2018 05:06:59 -0800 From: Tomasz Jozwiak To: dev@dpdk.org, fiona.trahe@intel.com, tomaszx.jozwiak@intel.com, Shally.Verma@cavium.com, akhil.goyal@nxp.com Date: Fri, 23 Nov 2018 14:06:48 +0100 Message-Id: <1542978409-28668-5-git-send-email-tomaszx.jozwiak@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542978409-28668-1-git-send-email-tomaszx.jozwiak@intel.com> References: <1541151842-8746-1-git-send-email-tomaszx.jozwiak@intel.com> <1542978409-28668-1-git-send-email-tomaszx.jozwiak@intel.com> Subject: [dpdk-dev] [PATCH v3 4/5] app/compress-perf: add dynamic compression test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2018 13:07:01 -0000 Added dynamic compression feature into compression perf. test. Signed-off-by: Tomasz Jozwiak --- app/test-compress-perf/comp_perf_options_parse.c | 6 +++++- doc/guides/rel_notes/release_18_11.rst | 3 +-- doc/guides/tools/comp_perf.rst | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/test-compress-perf/comp_perf_options_parse.c b/app/test-compress-perf/comp_perf_options_parse.c index fd5d31c..dbe8135 100644 --- a/app/test-compress-perf/comp_perf_options_parse.c +++ b/app/test-compress-perf/comp_perf_options_parse.c @@ -431,6 +431,10 @@ parse_huffman_enc(struct comp_test_data *test_data, const char *arg) { "fixed", RTE_COMP_HUFFMAN_FIXED + }, + { + "dynamic", + RTE_COMP_HUFFMAN_DYNAMIC } }; @@ -567,7 +571,7 @@ comp_perf_options_default(struct comp_test_data *test_data) test_data->pool_sz = 8192; test_data->max_sgl_segs = 16; test_data->num_iter = 10000; - test_data->huffman_enc = RTE_COMP_HUFFMAN_FIXED; + test_data->huffman_enc = RTE_COMP_HUFFMAN_DYNAMIC; test_data->test_op = COMPRESS_DECOMPRESS; test_data->window_sz = -1; test_data->level.min = 1; diff --git a/doc/guides/rel_notes/release_18_11.rst b/doc/guides/rel_notes/release_18_11.rst index d44cf30..848cc06 100644 --- a/doc/guides/rel_notes/release_18_11.rst +++ b/doc/guides/rel_notes/release_18_11.rst @@ -331,8 +331,7 @@ New Features * **Added a compression performance test tool.** Added a new performance test tool to test the compressdev PMD. The tool tests - compression ratio and compression throughput. Dynamic compression test is not - supported yet. + compression ratio and compression throughput. API Changes ----------- diff --git a/doc/guides/tools/comp_perf.rst b/doc/guides/tools/comp_perf.rst index 1428348..abb727d 100644 --- a/doc/guides/tools/comp_perf.rst +++ b/doc/guides/tools/comp_perf.rst @@ -19,7 +19,7 @@ to check the throughput rate Limitations ~~~~~~~~~~~ -* Only supports the fixed compression and stateless operation. +* Only supports the stateless operation. Command line options -------------------- @@ -42,7 +42,7 @@ Command line options ``--operation [comp/decomp/comp_and_decomp]``: perform test on compression, decompression or both operations - ``--huffman-enc [fixed/default]``: Huffman encoding (default: fixed) + ``--huffman-enc [fixed/dynamic/default]``: Huffman encoding (default: dynamic) ``--compress-level N``: compression level, which could be a single value, list or range (default: range between 1 and 9) -- 2.7.4