Action pipe throughput in the covering

There is a covering command that permits you to gauge just how rapid the information experiences it, so you can gauge the rate of result of commands in a pipe. So as opposed to:

$ somecommand | anothercommand

you can do something like:

$ somecommand | ??? | anothercommand

And also throughput statistics (bytes/sec) are published to stderr, I assume. Yet I can not for the life of me remember what that command was.

0
2019-05-04 04:22:37
Source Share
Answers: 2

You require an energy called cpipe.

Use :

tar cCf / - usr | cpipe -vr -vw -vt > /dev/null
.

Result :

...
  in:  19.541ms at    6.4MB/s (   4.7MB/s avg)    2.0MB
 out:   0.004ms at   30.5GB/s (  27.1GB/s avg)    2.0MB
thru:  19.865ms at    6.3MB/s (   4.6MB/s avg)    2.0MB
... 
.
0
2019-05-08 00:49:55
Source

cpipe is possibly much better for these objectives, yet an additional relevant program is pv (Pipe Viewer ) :

If you offer it the --rate flag it will certainly show the transfer price

0
2019-05-07 19:01:10
Source