aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-06-25 12:48:43 +0200
committerTibor Frank <tifrank@cisco.com>2018-06-29 12:59:04 +0200
commit4b0df8e7baea755e2e1a1c27a7707fb0a3f28b6e (patch)
tree19f9ab217236e7b26bea15bb266d866d493cfa4f /resources/tools/presentation/generator_tables.py
parentb8bf181cafb0f4e8a317c308cfe83a3e022ce7c5 (diff)
CSIT-1124: Support multi-sample tests
+ Store parsed MRR results as AvgStdevMetadata + Modify tables and plots to use AvgStdevMetadata Change-Id: I29bb1e492a664544e63a180055f66bb0eecfb957 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 40eda7b8d9..d42c734b95 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -17,7 +17,6 @@
import logging
import csv
-import pandas as pd
from string import replace
from collections import OrderedDict
@@ -185,6 +184,8 @@ def table_performance_improvements(table, input_data):
"""Generate the table(s) with algorithm: table_performance_improvements
specified in the specification file.
+ # FIXME: Not used now.
+
:param table: Table to generate.
:param input_data: Data to process.
:type table: pandas.Series
@@ -611,7 +612,7 @@ def table_performance_comparison_mrr(table, input_data):
"cmp-data": list()}
try:
tbl_dict[tst_name]["ref-data"].\
- append(tst_data["result"]["throughput"])
+ append(tst_data["result"]["receive-rate"].avg)
except TypeError:
pass # No data in output.xml for this test
@@ -620,7 +621,7 @@ def table_performance_comparison_mrr(table, input_data):
for tst_name, tst_data in data[job][str(build)].iteritems():
try:
tbl_dict[tst_name]["cmp-data"].\
- append(tst_data["result"]["throughput"])
+ append(tst_data["result"]["receive-rate"].avg)
except KeyError:
pass
except TypeError:
@@ -723,21 +724,21 @@ def table_performance_trending_dashboard(table, input_data):
"data": OrderedDict()}
try:
tbl_dict[tst_name]["data"][str(build)] = \
- tst_data["result"]["throughput"]
+ tst_data["result"]["receive-rate"]
except (TypeError, KeyError):
pass # No data in output.xml for this test
tbl_lst = list()
for tst_name in tbl_dict.keys():
- if len(tbl_dict[tst_name]["data"]) < 2:
+ data_t = tbl_dict[tst_name]["data"]
+ if len(data_t) < 2:
continue
- data_t = pd.Series(tbl_dict[tst_name]["data"])
-
classification_lst, avgs = classify_anomalies(data_t)
- win_size = min(data_t.size, table["window"])
- long_win_size = min(data_t.size, table["long-trend-window"])
+ win_size = min(len(data_t), table["window"])
+ long_win_size = min(len(data_t), table["long-trend-window"])
+
try:
max_long_avg = max(
[x for x in avgs[-long_win_size:-win_size]