test suite reviews and discussions
 help / color / Atom feed
From: Xiao Qimai <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: Xiao Qimai <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1 07/17]pvp_multi_paths_virtio_single_core_performance: change verified mpps value according to linerate
Date: Fri, 22 May 2020 16:31:58 +0800
Message-ID: <1590136328-457243-8-git-send-email-qimaix.xiao@intel.com> (raw)
In-Reply-To: <1590136328-457243-1-git-send-email-qimaix.xiao@intel.com>

Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
 ...Suite_pvp_multi_paths_virtio_single_core_performance.py | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py b/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py
index b98048b..13ec493 100644
--- a/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py
+++ b/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py
@@ -100,6 +100,15 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
         self.test_result = {}
         self.nb_desc = self.test_parameters[64][0]
 
+    @property
+    def check_value(self):
+        check_dict = dict.fromkeys(self.frame_sizes)
+        linerate = {64: 0.085, 128: 0.12, 256: 0.20, 512: 0.35, 1024: 0.50, 1280: 0.55, 1518: 0.60}
+        for size in self.frame_sizes:
+            speed = self.wirespeed(self.nic, size, self.number_of_ports)
+            check_dict[size] = round(speed * linerate[size], 2)
+        return check_dict
+
     def send_and_verify(self, case_info):
         """
         Send packet with packet generator and verify
@@ -126,8 +135,9 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
             traffic_opt = {'delay': 5}
             _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams, options=traffic_opt)
             Mpps = pps / 1000000.0
-            self.verify(Mpps > 0.0, "%s can not receive packets of frame size %d" % (self.running_case, frame_size))
-
+            self.verify(Mpps > self.check_value[frame_size],
+                        "%s of frame size %d speed verify failed, expect %s, result %s" % (
+                        self.running_case, frame_size, self.check_value[frame_size], Mpps))
             linerate = Mpps * 100 / \
                          float(self.wirespeed(self.nic, frame_size, self.number_of_ports))
             self.throughput[frame_size][self.nb_desc] = Mpps
-- 
1.8.3.1


  parent reply index

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-22  8:31 [dts] [PATCH V1 00/17] change virtio case mpps verification value Xiao Qimai
2020-05-22  8:31 ` [dts] [PATCH V1 01/17]loopback_multi_paths_port_restart: change verfiy mpps to largger than 0.5 Xiao Qimai
2020-05-22  8:31 ` [dts] [PATCH V1 02/17]loopback_multi_queues: change verfiy mpps to largger than 5 Xiao Qimai
2020-05-22  8:31 ` [dts] [PATCH V1 03/17]loopback_virtio_user_server_mode: change verfiy mpps to largger than 0.5 Xiao Qimai
2020-05-22  8:31 ` [dts] [PATCH V1 04/17]pvp_diff_qemu_version: change verified mpps value according to linerate Xiao Qimai
2020-05-22  8:31 ` [dts] [PATCH V1 05/17]pvp_multi_paths_performance: " Xiao Qimai
2020-05-22  8:31 ` [dts] [PATCH V1 06/17]pvp_multi_paths_vhost_single_core_performance: " Xiao Qimai
2020-05-22  8:31 ` Xiao Qimai [this message]
2020-05-22  8:31 ` [dts] [PATCH V1 08/17]pvp_qemu_multi_paths_port_restart: " Xiao Qimai
2020-05-22  8:32 ` [dts] [PATCH V1 09/17]pvp_vhost_user_built_in_net_driver: " Xiao Qimai
2020-05-22  8:32 ` [dts] [PATCH V1 10/17]pvp_virtio_user_2M_hugepages: " Xiao Qimai
2020-05-22  8:32 ` [dts] [PATCH V1 11/17]pvp_virtio_user_4k_pages: " Xiao Qimai
2020-05-22  8:32 ` [dts] [PATCH V1 12/17]pvp_virtio_user_multi_queues_port_restart: " Xiao Qimai
2020-05-22  8:32 ` [dts] [PATCH V1 13/17]vhost_dequeue_zero_copy: " Xiao Qimai
2020-05-22  8:32 ` [dts] [PATCH V1 14/17]vhost_multi_queue_qemu: " Xiao Qimai
2020-05-22  8:32 ` [dts] [PATCH V1 15/17]virtio_pvp_regression: " Xiao Qimai
2020-05-22  8:32 ` [dts] [PATCH V1 16/17]virtio_user_for_container_networking: " Xiao Qimai
2020-05-22  8:32 ` [dts] [PATCH V1 17/17]vm2vm_virtio_pmd: change verified mpps value to 0.5 Xiao Qimai
2020-05-22  8:51 ` [dts] [PATCH V1 00/17] change virtio case mpps verification value Xiao, QimaiX

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1590136328-457243-8-git-send-email-qimaix.xiao@intel.com \
    --to=qimaix.xiao@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox