Skip to content

Instantly share code, notes, and snippets.

@maxheadroom
Created September 28, 2020 12:29
Show Gist options
  • Save maxheadroom/a3cfea1ce9881aaa119b9c675222d294 to your computer and use it in GitHub Desktop.
Save maxheadroom/a3cfea1ce9881aaa119b9c675222d294 to your computer and use it in GitHub Desktop.
pure network performance test with netcat

destination side (listening and receiving traffic):

while true; do sudo nc -v -l 8888 > /dev/null; done

source side (sending traffic to destination):

while true;do dd if=/dev/zero bs=512 count=1000000 2>> ./transfer.log | nc -v 10.90.7.3 8888; time >> ./transfer.log; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment