summaryrefslogtreecommitdiffstats
path: root/tests/functional/utils.py
diff options
context:
space:
mode:
authorJing Zhang <jing.c.zhang@nokia.com>2017-04-06 09:38:20 -0400
committerRoss Brattain <ross.b.brattain@intel.com>2017-05-31 16:18:39 +0000
commit68fc8023c0018e8380d35540d31d410ae5c507f9 (patch)
tree85d6655b55f4aace05b8e4dc294d70c9901cf1d2 /tests/functional/utils.py
parent37921fcd232cd2fbba9f45ef9fa5d8c912f54af6 (diff)
Add a new runner to do binary search for max PPS
A run consists of multiple (configurable) iterations. The first iteration starts from a configured packet rate. The subsequent iterations start from the observed rate from the previous run. An iteration is a binary search for maximum pps while not exceeding 10-6 packet loss rate. The upper rate is capped to the last pps when packet loss target is missed, the bottom rate is capped to the last pps when packet loss target is met. An iteration stops when the upper rate and the lower rate are close enough (configurable) or the received rate is well below the sending rate. The output observed rate is set to the bottom rate. Update-1: local run of run_tests.sh is good, but two lines are reported by Jekins as too long Update-2: Minor fix to cope with "pps" is not defined in test case yaml file. Update-3: Add pragma to skip unit test for this patch. JIRA: YARDSTICK-613 Change-Id: I2411b173d18d928cc1cf08f883b08bc13a125ea2 Signed-off-by: Jing Zhang <jing.c.zhang@nokia.com>
Diffstat (limited to 'tests/functional/utils.py')
0 files changed, 0 insertions, 0 deletions