DEV Community

Discussion on: Data Streaming between Every Device over HTTP/HTTPS

Collapse
 
normanr profile image
Norman Rasmussen

Your tests may be limited by yes and/or cat and/or /dev/urandom. What about using /dev/zero with dd instead? (dd also allows you to control the block size.) You can test the speed of input data with pv.

Also the CPU usage of the server needs to be considered too, otherwise CPU used by cat/curl and other tools is competing and not taken into account.

Collapse
 
nwtgck profile image
Ryo Ota • Edited

Thank you very much for your smarter suggestion! I thought the comparison was too simple. When I tried another speed comparison, I'll use your suggestion, and server, senders and receivers should be run probably in different machines, considering CPU usages.