[V1] tests/pvp_multi_paths_*: modify pktgen options parameter
Checks
Context |
Check |
Description |
ci/Intel-dts-format-test |
success
|
Testing OK
|
ci/Intel-dts-pylama-test |
success
|
Testing OK
|
ci/Intel-dts-suite-test |
warning
|
SKIPPED
|
Commit Message
Modify pktgen options parameter `trans_options = {"delay": 5, "duration": 30}`
to get stable throughput value.
Signed-off-by: Wei Ling <weix.ling@intel.com>
---
tests/TestSuite_pvp_multi_paths_performance.py | 5 ++++-
...estSuite_pvp_multi_paths_vhost_single_core_performance.py | 5 ++++-
...stSuite_pvp_multi_paths_virtio_single_core_performance.py | 4 ++--
3 files changed, 10 insertions(+), 4 deletions(-)
Comments
On Tue, 21 Mar 2023 10:45:05 +0800, Wei Ling <weix.ling@intel.com> wrote:
> Modify pktgen options parameter `trans_options = {"delay": 5, "duration": 30}`
> to get stable throughput value.
>
> Signed-off-by: Wei Ling <weix.ling@intel.com>
Applied, thanks
@@ -104,7 +104,10 @@ class TestPVPMultiPathPerformance(TestCase):
streams = self.pktgen_helper.prepare_stream_from_tginput(
tgen_input, 100, None, self.tester.pktgen
)
- _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams)
+ trans_options = {"delay": 5, "duration": 30}
+ _, pps = self.tester.pktgen.measure_throughput(
+ stream_ids=streams, options=trans_options
+ )
Mpps = pps / 1000000.0
self.throughput[frame_size][self.nb_desc] = Mpps
linerate = (
@@ -103,7 +103,10 @@ class TestPVPMultiPathVhostPerformance(TestCase):
streams = self.pktgen_helper.prepare_stream_from_tginput(
tgen_input, 100, None, self.tester.pktgen
)
- _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams)
+ trans_options = {"delay": 5, "duration": 30}
+ _, pps = self.tester.pktgen.measure_throughput(
+ stream_ids=streams, options=trans_options
+ )
Mpps = pps / 1000000.0
linerate = (
Mpps
@@ -105,9 +105,9 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
tgen_input, 100, None, self.tester.pktgen
)
# set traffic option
- traffic_opt = {"delay": 5}
+ trans_options = {"delay": 5, "duration": 30}
_, pps = self.tester.pktgen.measure_throughput(
- stream_ids=streams, options=traffic_opt
+ stream_ids=streams, options=trans_options
)
Mpps = pps / 1000000.0
linerate = (