Benchmark binary streams. Mostly a copy paste of benchmark/net-pipe
var streamBench =http =fs =http
All the options are passed to the underlying stream, so
bufferSize, etc are all valid.
interval: How often to calculate throughput (in ms). Default
metric: In what metric to report (
logReport: Whether to log report to stdout. Default
dump: Whether to dump data read from input stream. Useful when you won't pipe to another stream. Default