diff --git a/tests/framework/utils_iperf.py b/tests/framework/utils_iperf.py index 54d7f9aa4d8..ab7117e405c 100644 --- a/tests/framework/utils_iperf.py +++ b/tests/framework/utils_iperf.py @@ -169,7 +169,7 @@ def consume_iperf3_output(stats_consumer, iperf_result): ] -def emit_iperf3_metrics(metrics, iperf_result): +def emit_iperf3_metrics(metrics, iperf_result, omit): """Consume the iperf3 data produced by the tcp/vsock throughput performance tests""" for cpu_util_data_point in list( iperf_result["cpu_load_raw"]["firecracker"].values() @@ -177,7 +177,7 @@ def emit_iperf3_metrics(metrics, iperf_result): metrics.put_metric("cpu_utilization_vmm", cpu_util_data_point, "Percent") for time_series in iperf_result["g2h"]: - for interval in time_series["intervals"]: + for interval in time_series["intervals"][omit:]: metrics.put_metric( "throughput_guest_to_host", interval["sum"]["bits_per_second"], @@ -185,7 +185,7 @@ def emit_iperf3_metrics(metrics, iperf_result): ) for time_series in iperf_result["h2g"]: - for interval in time_series["intervals"]: + for interval in time_series["intervals"][omit:]: metrics.put_metric( "throughput_host_to_guest", interval["sum"]["bits_per_second"], diff --git a/tests/integration_tests/performance/test_network_ab.py b/tests/integration_tests/performance/test_network_ab.py index 3358582725c..55769348ce2 100644 --- a/tests/integration_tests/performance/test_network_ab.py +++ b/tests/integration_tests/performance/test_network_ab.py @@ -171,4 +171,4 @@ def test_network_tcp_throughput( } ) - emit_iperf3_metrics(metrics, data) + emit_iperf3_metrics(metrics, data, TCPIPerf3Test.WARMUP_SEC) diff --git a/tests/integration_tests/performance/test_vsock_ab.py b/tests/integration_tests/performance/test_vsock_ab.py index 4e98f464ac2..5d3f2b64560 100644 --- a/tests/integration_tests/performance/test_vsock_ab.py +++ b/tests/integration_tests/performance/test_vsock_ab.py @@ -116,4 +116,4 @@ def test_vsock_throughput( } ) - emit_iperf3_metrics(metrics, data) + emit_iperf3_metrics(metrics, data, VsockIPerf3Test.WARMUP_SEC)