@@ -824,6 +824,7 @@ impl TestResults for TcpTestResults {
824
824
let mut duration_receive: f64 = 0.0 ;
825
825
let mut bytes_received: u64 = 0 ;
826
826
827
+ let mut sends_blocked = false ;
827
828
828
829
for ( stream_idx, stream) in self . stream_results . values ( ) . enumerate ( ) {
829
830
for ( i, sr) in stream. send_results . iter ( ) . enumerate ( ) {
@@ -835,6 +836,8 @@ impl TestResults for TcpTestResults {
835
836
stream_send_durations[ stream_idx] += sr. duration as f64 ;
836
837
837
838
bytes_sent += sr. bytes_sent ;
839
+
840
+ sends_blocked |= sr. sends_blocked > 0 ;
838
841
}
839
842
840
843
for ( i, rr) in stream. receive_results . iter ( ) . enumerate ( ) {
@@ -899,6 +902,9 @@ impl TestResults for TcpTestResults {
899
902
receive_bytes_per_second, receive_throughput,
900
903
bytes_received, receive_bytes_per_second * stream_count as f64 , total_receive_throughput,
901
904
) ;
905
+ if sends_blocked {
906
+ output. push_str ( & format ! ( "\n throughput throttled by buffer limitations" ) ) ;
907
+ }
902
908
if !self . is_success ( ) {
903
909
output. push_str ( & format ! ( "\n TESTING DID NOT COMPLETE SUCCESSFULLY" ) ) ;
904
910
}
@@ -1097,6 +1103,7 @@ impl TestResults for UdpTestResults {
1097
1103
let mut unbroken_sequence_count: u64 = 0 ;
1098
1104
let mut jitter_weight: f64 = 0.0 ;
1099
1105
1106
+ let mut sends_blocked = false ;
1100
1107
1101
1108
for ( stream_idx, stream) in self . stream_results . values ( ) . enumerate ( ) {
1102
1109
for ( i, sr) in stream. send_results . iter ( ) . enumerate ( ) {
@@ -1109,6 +1116,8 @@ impl TestResults for UdpTestResults {
1109
1116
1110
1117
bytes_sent += sr. bytes_sent ;
1111
1118
packets_sent += sr. packets_sent ;
1119
+
1120
+ sends_blocked |= sr. sends_blocked > 0 ;
1112
1121
}
1113
1122
1114
1123
for ( i, rr) in stream. receive_results . iter ( ) . enumerate ( ) {
@@ -1197,6 +1206,9 @@ impl TestResults for UdpTestResults {
1197
1206
if jitter_calculated {
1198
1207
output. push_str ( & format ! ( "\n jitter: {:.6}s over {} consecutive packets" , jitter_weight / ( unbroken_sequence_count as f64 ) , unbroken_sequence_count) ) ;
1199
1208
}
1209
+ if sends_blocked {
1210
+ output. push_str ( & format ! ( "\n throughput throttled by buffer limitations" ) ) ;
1211
+ }
1200
1212
if !self . is_success ( ) {
1201
1213
output. push_str ( & format ! ( "\n TESTING DID NOT COMPLETE SUCCESSFULLY" ) ) ;
1202
1214
}
0 commit comments