diff options
-rw-r--r-- | docs/report/vpp_performance_tests/comparisons/current_vs_previous_release.rst | 18 | ||||
-rw-r--r-- | resources/tools/presentation/generator_tables.py | 3 |
2 files changed, 11 insertions, 10 deletions
diff --git a/docs/report/vpp_performance_tests/comparisons/current_vs_previous_release.rst b/docs/report/vpp_performance_tests/comparisons/current_vs_previous_release.rst index dbfc391d2a..c64be965a5 100644 --- a/docs/report/vpp_performance_tests/comparisons/current_vs_previous_release.rst +++ b/docs/report/vpp_performance_tests/comparisons/current_vs_previous_release.rst @@ -453,15 +453,15 @@ Latency Comparison Comparison tables in HTML, ASCII and CSV formats: - - `HTML 1t1c PDR50, direction1, average value comparison <latency-changes-2n-tsh-x520-1t1c-pdr50-d1-avg.html>`_ - - `HTML 1t1c PDR90, direction1, average value comparison <latency-changes-2n-tsh-x520-1t1c-pdr90-d1-avg.html>`_ - - `HTML 1t1c PDR90, direction1, max value comparison <latency-changes-2n-tsh-x520-1t1c-pdr90-d1-max.html>`_ - - `ASCII 1t1c PDR50, direction1, average value comparison <../../_static/vpp/latency-changes-2n-tsh-x520-1t1c-pdr50-d1-avg.txt>`_ - - `ASCII 1t1c PDR90, direction1, average value comparison <../../_static/vpp/latency-changes-2n-tsh-x520-1t1c-pdr90-d1-avg.txt>`_ - - `ASCII 1t1c PDR90, direction1, max value comparison <../../_static/vpp/latency-changes-2n-tsh-x520-1t1c-pdr90-d1-max.txt>`_ - - `CSV 1t1c PDR50, direction1, average value comparison <../../_static/vpp/latency-changes-2n-tsh-x520-1t1c-pdr50-d1-avg-csv.csv>`_ - - `CSV 1t1c PDR90, direction1, average value comparison <../../_static/vpp/latency-changes-2n-tsh-x520-1t1c-pdr90-d1-avg-csv.csv>`_ - - `CSV 1t1c PDR90, direction1, max value comparison <../../_static/vpp/latency-changes-2n-tsh-x520-1t1c-pdr90-d1-max-csv.csv>`_ + - `HTML 1t1c PDR50, direction1, average value comparison <latency-changes-3n-tsh-x520-1t1c-pdr50-d1-avg.html>`_ + - `HTML 1t1c PDR90, direction1, average value comparison <latency-changes-3n-tsh-x520-1t1c-pdr90-d1-avg.html>`_ + - `HTML 1t1c PDR90, direction1, max value comparison <latency-changes-3n-tsh-x520-1t1c-pdr90-d1-max.html>`_ + - `ASCII 1t1c PDR50, direction1, average value comparison <../../_static/vpp/latency-changes-3n-tsh-x520-1t1c-pdr50-d1-avg.txt>`_ + - `ASCII 1t1c PDR90, direction1, average value comparison <../../_static/vpp/latency-changes-3n-tsh-x520-1t1c-pdr90-d1-avg.txt>`_ + - `ASCII 1t1c PDR90, direction1, max value comparison <../../_static/vpp/latency-changes-3n-tsh-x520-1t1c-pdr90-d1-max.txt>`_ + - `CSV 1t1c PDR50, direction1, average value comparison <../../_static/vpp/latency-changes-3n-tsh-x520-1t1c-pdr50-d1-avg-csv.csv>`_ + - `CSV 1t1c PDR90, direction1, average value comparison <../../_static/vpp/latency-changes-3n-tsh-x520-1t1c-pdr90-d1-avg-csv.csv>`_ + - `CSV 1t1c PDR90, direction1, max value comparison <../../_static/vpp/latency-changes-3n-tsh-x520-1t1c-pdr90-d1-max-csv.csv>`_ 2n-tx2 ~~~~~~ diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index fe0eaaa22e..351250a4d2 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -17,6 +17,7 @@ import logging import csv +import math import re from collections import OrderedDict @@ -1809,7 +1810,7 @@ def table_comparison(table, input_data): ) except ZeroDivisionError: break - if delta in (None, float(u"nan"), u"nan", u"NaN"): + if delta is None or math.isnan(delta): break new_row.append({ u"mean": delta * 1e6, |