[Make-wifi-fast] iperf enhancements in 2.0.8
Toke Høiland-Jørgensen
toke at toke.dk
Fri Oct 16 04:52:48 EDT 2015
"Bob (Robert) McMahon" <rmcmahon at broadcom.com> writes:
> Just an FYI for those who might be interested. We added RTT and CWND
> samples in iperf 2.0.8 for the TCP transmitter (iperf client) as well
> as UDP mean/min/max/stdev in the iperf server (assumes the clocks are
> synched.) Also, much faster sampling is supported. These may be
> helpful to those trying to improve wi-fi performance. To get the
> output one needs to use the –e option. Also, RTT/CWND is linux only.
> Apple is evaluating the change set and *may* ship it with future
> phones and Mac OS X systems.
Hi Bob
Any chance of getting the below patch into Iperf? Or in general, getting
sub-second resolution on the timestamps output in CSV mode? Would make
it easier to integrate Iperf into Flent tests (where the timestamps are
used to match the output with other simultaneous test tools).
-Toke
--- a/src/ReportCSV.c 2007-08-29 23:57:27.000000000 +0200
+++ b/src/ReportCSV.c 2012-10-17 15:54:46.516986280 +0200
@@ -149,9 +149,8 @@
}
void CSV_timestamp( char *timestamp, int length ) {
- time_t times;
- struct tm *timest;
- times = time( NULL );
- timest = localtime( × );
- strftime( timestamp, length,"%Y%m%d%H%M%S", timest );
+ struct timeval tv;
+ gettimeofday(&tv, NULL);
+ snprintf(timestamp, length, "%lu.%06lu",
+ (unsigned long)tv.tv_sec, (unsigned long)tv.tv_usec);
}
More information about the Make-wifi-fast
mailing list