At least one out of standard input or standard output must not be
a terminal. The output of ttest is written to stderr.
The arithmetic averages correspond to 1, 5 and 15 minute averages,
similar to the load average of a Linux system. To avoid overly
large values from asynchronously writing to buffer caches in the
beginning, the calculation of the 1, 5 and 15 minute averages
starts after 10 seconds.
* to measure the throughput of your storage device
$ ttest 100k > foo
$ ttest 10m < foo
* throughput of a network link:
- receiver side:
$ netcat -lp 10001 | ttest 10k
- sender side:
$ ttest 10k > /dev/tcp/receiver.host.name/10001
note: There is no such file as /dev/tcp/host/port. This is a bash feature.