Skip to content

Commit 4db1a3a

Browse files
committed
spec/fixtures: stats: add simplified iperf test fixture
Extract a minimal JSON footprint of an iperf benchmark stat block containing start, a single sample interval, and end metrics. Signed-off-by: Philip Li <philip.li@intel.com>
1 parent f182b61 commit 4db1a3a

2 files changed

Lines changed: 141 additions & 0 deletions

File tree

spec/fixtures/stats/iperf/1

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
{
2+
"start": {
3+
"connected": [
4+
{
5+
"socket": 6,
6+
"local_host": "127.0.0.1",
7+
"local_port": 39820,
8+
"remote_host": "127.0.0.1",
9+
"remote_port": 5201
10+
}
11+
],
12+
"version": "iperf 3.20+",
13+
"system_info": "Linux ethanolxb491host 7.0.0-rc2 #1 SMP PREEMPT_DYNAMIC Mon Mar 9 09:58:05 UTC 2026 x86_64",
14+
"timestamp": {
15+
"time": "Tue, 07 Apr 2026 12:31:42 GMT",
16+
"timesecs": 1775565102,
17+
"timemillisecs": 1775565102555
18+
},
19+
"connecting_to": {
20+
"host": "127.0.0.1",
21+
"port": 5201
22+
},
23+
"cookie": "56vcairk4tpehrwhg2qsvy2b4krtat3g3sem",
24+
"tcp_mss_default": 32768,
25+
"target_bitrate": 0,
26+
"fq_rate": 0,
27+
"sock_bufsize": 0,
28+
"sndbuf_actual": 16384,
29+
"rcvbuf_actual": 131072,
30+
"test_start": {
31+
"protocol": "TCP",
32+
"num_streams": 1,
33+
"blksize": 131072,
34+
"omit": 0,
35+
"duration": 10,
36+
"bytes": 0,
37+
"blocks": 0,
38+
"reverse": 0,
39+
"tos": 0,
40+
"target_bitrate": 0,
41+
"bidir": 0,
42+
"fqrate": 0,
43+
"interval": 1,
44+
"gso": 0,
45+
"gro": 0
46+
}
47+
},
48+
"intervals": [
49+
{
50+
"streams": [
51+
{
52+
"socket": 6,
53+
"start": 0,
54+
"end": 1.000976,
55+
"seconds": 1.0009759664535522,
56+
"bytes": 3002728448,
57+
"bits_per_second": 23998405944.859089,
58+
"retransmits": 0,
59+
"snd_cwnd": 1047728,
60+
"snd_wnd": 674816,
61+
"rtt": 49,
62+
"rttvar": 10,
63+
"pmtu": 65535,
64+
"reorder": 0,
65+
"omitted": false,
66+
"sender": true
67+
}
68+
],
69+
"sum": {
70+
"start": 0,
71+
"end": 1.000976,
72+
"seconds": 1.0009759664535522,
73+
"bytes": 3002728448,
74+
"bits_per_second": 23998405944.859089,
75+
"retransmits": 0,
76+
"omitted": false,
77+
"sender": true
78+
}
79+
}
80+
],
81+
"end": {
82+
"streams": [
83+
{
84+
"sender": {
85+
"socket": 6,
86+
"start": 0,
87+
"end": 10.001274,
88+
"seconds": 10.001274,
89+
"bytes": 29439950848,
90+
"bits_per_second": 23548960540.8271,
91+
"retransmits": 0,
92+
"reorder": 0,
93+
"max_snd_cwnd": 1047728,
94+
"max_snd_wnd": 674816,
95+
"max_rtt": 65,
96+
"min_rtt": 40,
97+
"mean_rtt": 51,
98+
"sender": true
99+
},
100+
"receiver": {
101+
"socket": 6,
102+
"start": 0,
103+
"end": 10.001405,
104+
"seconds": 10.001274,
105+
"bytes": 29439950848,
106+
"bits_per_second": 23548652092.780964,
107+
"sender": true
108+
}
109+
}
110+
],
111+
"sum_sent": {
112+
"start": 0,
113+
"end": 10.001274,
114+
"seconds": 10.001274,
115+
"bytes": 29439950848,
116+
"bits_per_second": 23548960540.8271,
117+
"retransmits": 0,
118+
"sender": true
119+
},
120+
"sum_received": {
121+
"start": 0,
122+
"end": 10.001405,
123+
"seconds": 10.001405,
124+
"bytes": 29439950848,
125+
"bits_per_second": 23548652092.780964,
126+
"sender": true
127+
},
128+
"cpu_utilization_percent": {
129+
"host_total": 101.81275995134462,
130+
"host_user": 0.36397562112144322,
131+
"host_system": 101.44878433022318,
132+
"remote_total": 51.298736358678887,
133+
"remote_user": 0.87079686932267775,
134+
"remote_system": 50.4279494879424
135+
},
136+
"sender_tcp_congestion": "cubic",
137+
"receiver_tcp_congestion": "cubic"
138+
}
139+
}

spec/fixtures/stats/iperf/1.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tcp.sender.bps: 23548960540.8271
2+
tcp.receiver.bps: 23548652092.780964

0 commit comments

Comments
 (0)