1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
5 #ifndef _COMP_PERF_TEST_BENCHMARK_
6 #define _COMP_PERF_TEST_BENCHMARK_
10 #include "comp_perf_options.h"
11 #include "comp_perf_test_common.h"
12 #include "comp_perf_test_verify.h"
14 struct cperf_benchmark_ctx {
15 struct cperf_verify_ctx ver;
17 /* Store TSC duration for all levels (including level 0) */
18 uint64_t comp_tsc_duration[RTE_COMP_LEVEL_MAX + 1];
19 uint64_t decomp_tsc_duration[RTE_COMP_LEVEL_MAX + 1];
23 double decomp_tsc_byte;
27 cperf_benchmark_test_destructor(void *arg);
30 cperf_benchmark_test_runner(void *test_ctx);
33 cperf_benchmark_test_constructor(uint8_t dev_id, uint16_t qp_id,
34 struct comp_test_data *options);