Alternative to Subprocess profiling.
Using stdout.read()
instead of .readline()
root@3ac1680da5be:/# python subprocess_profile_maxsize.py --iterations=10000 --size=100
Read: 1,980.560 MB/s
Write: 1,596.243 MB/s
Iterations: 10,000
Avarage roundtrip time: 0.125 ms/request
Min roundtrip time: 0.049 ms/request
Max roundtrip time: 1.538 ms/request
Delta roundtrip time: 1.489 ms