From 211eb7443e6cdc66c9657399be983184cd16bba7 Mon Sep 17 00:00:00 2001 From: Radek Zetik Date: Mon, 20 Jul 2015 05:33:58 +0100 Subject: Add a simple performance test that sends a continuous stream Implement a simple performance test that sends a continuous stream of traffic to the vSwitch at line rate for 30 seconds and measures the throughput Note: there is issue with calculating of the Tx Fps and Mbps based on the results from the IxNetwork traffic generator. This issue will be fixed in a later patch. JIRA: VSPERF-27 Change-Id: Ic72225888735d33398a602462af159e901fb5957 Signed-off-by: Radek Zetik Reviewed-by: Maryam Tahhan --- core/traffic_controller_rfc2544.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/traffic_controller_rfc2544.py') diff --git a/core/traffic_controller_rfc2544.py b/core/traffic_controller_rfc2544.py index bcea9568..aae3ef81 100644 --- a/core/traffic_controller_rfc2544.py +++ b/core/traffic_controller_rfc2544.py @@ -86,6 +86,9 @@ class TrafficControllerRFC2544(ITrafficController, IResults): result = self._traffic_gen_class.send_rfc2544_back2back( traffic, trials=int(self._trials), duration=int(get_test_param('rfc2544_duration', 20))) + elif traffic['traffic_type'] == 'continuous': + result = self._traffic_gen_class.send_cont_traffic( + traffic, time=int(get_test_param('rfc2544_duration', 30))) else: result = self._traffic_gen_class.send_rfc2544_throughput( traffic, trials=int(self._trials), -- cgit 1.2.3-korg