[v4,4/5] app/compress-perf: add dynamic compression test
Checks
Commit Message
Added dynamic compression feature into compression perf. test.
Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>
---
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(-)
@@ -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;
@@ -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
-----------
@@ -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)