diff options
author | mbeierl <mark.beierl@dell.com> | 2018-08-02 16:25:28 -0400 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2018-08-02 16:25:28 -0400 |
commit | 5051297e7294406453ac4ff2e14f35762a77b249 (patch) | |
tree | 900a8605a3910faa9d1253a76ee5992f96cf5fb5 /docker/storperf-master/storperf/utilities/steady_state.py | |
parent | 21d19004ea06187488fc6edef23db9a9c1826478 (diff) |
Calculate Data Seriesopnfv-7.0.stable.RC2
Adds the min, max and actual slope values to the
final report metrics so that end users do not
have to calculate these values.
Change-Id: Ic98ec5cbfcdf7447d2bffc46e9bd05e087c72965
JIRA: STORPERF-257
Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'docker/storperf-master/storperf/utilities/steady_state.py')
-rw-r--r-- | docker/storperf-master/storperf/utilities/steady_state.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/docker/storperf-master/storperf/utilities/steady_state.py b/docker/storperf-master/storperf/utilities/steady_state.py index 13f609d..23a74d7 100644 --- a/docker/storperf-master/storperf/utilities/steady_state.py +++ b/docker/storperf-master/storperf/utilities/steady_state.py @@ -9,7 +9,8 @@ import logging from storperf.utilities import data_treatment as DataTreatment -from storperf.utilities import math as math +from storperf.utilities import math +from storperf.utilities.math import RANGE_DEVIATION, SLOPE_DEVIATION def steady_state(data_series): @@ -38,15 +39,19 @@ def steady_state(data_series): average_value is not None): # Verification of the Steady State conditions following the SNIA # definition - range_condition = abs(range_value) <= 0.20 * abs(average_value) - slope_condition = abs(slope_value) <= 0.10 * abs(average_value) + range_condition = abs(range_value) <= RANGE_DEVIATION * \ + abs(average_value) + slope_condition = abs(slope_value) <= SLOPE_DEVIATION * \ + abs(average_value) steady_state = range_condition and slope_condition logger.debug("Range %s <= %s?" % (abs(range_value), - (0.20 * abs(average_value)))) + (RANGE_DEVIATION * + abs(average_value)))) logger.debug("Slope %s <= %s?" % (abs(slope_value), - (0.10 * abs(average_value)))) + (SLOPE_DEVIATION * + abs(average_value)))) logger.debug("Steady State? %s" % steady_state) else: steady_state = False |