Skip to content

Instantly share code, notes, and snippets.

@ttdoda
Created May 25, 2020 10:49
Show Gist options
  • Save ttdoda/27e9914655404c527a900dbe866fc00d to your computer and use it in GitHub Desktop.
Save ttdoda/27e9914655404c527a900dbe866fc00d to your computer and use it in GitHub Desktop.
rsync vs scp
sue@taiyo% repeat 10 zsh -c 'ssh 192.168.56.53 rm -f benchmark3; time rsync benchmark3 192.168.56.53:'
rsync benchmark3 192.168.56.53: 9.16s user 4.13s system 54% cpu 24.191 total
rsync benchmark3 192.168.56.53: 9.16s user 4.01s system 55% cpu 23.929 total
rsync benchmark3 192.168.56.53: 9.09s user 4.10s system 54% cpu 24.172 total
rsync benchmark3 192.168.56.53: 9.20s user 4.11s system 55% cpu 24.163 total
rsync benchmark3 192.168.56.53: 9.10s user 4.02s system 53% cpu 24.397 total
rsync benchmark3 192.168.56.53: 9.24s user 4.22s system 55% cpu 24.085 total
rsync benchmark3 192.168.56.53: 9.11s user 4.04s system 54% cpu 24.182 total
rsync benchmark3 192.168.56.53: 9.18s user 4.04s system 55% cpu 24.034 total
rsync benchmark3 192.168.56.53: 8.98s user 4.00s system 53% cpu 24.107 total
rsync benchmark3 192.168.56.53: 9.70s user 4.61s system 54% cpu 26.500 total
sue@taiyo% repeat 10 zsh -c 'ssh 192.168.56.53 rm -f benchmark3; time scp -q benchmark3 192.168.56.53:'
scp -q benchmark3 192.168.56.53: 6.44s user 3.45s system 44% cpu 22.120 total
scp -q benchmark3 192.168.56.53: 6.90s user 4.17s system 44% cpu 24.712 total
scp -q benchmark3 192.168.56.53: 6.40s user 3.79s system 45% cpu 22.375 total
scp -q benchmark3 192.168.56.53: 6.69s user 3.73s system 45% cpu 22.971 total
scp -q benchmark3 192.168.56.53: 6.54s user 3.86s system 45% cpu 22.851 total
scp -q benchmark3 192.168.56.53: 6.28s user 3.69s system 45% cpu 21.824 total
scp -q benchmark3 192.168.56.53: 6.27s user 3.74s system 45% cpu 22.054 total
scp -q benchmark3 192.168.56.53: 6.25s user 3.86s system 46% cpu 21.928 total
scp -q benchmark3 192.168.56.53: 6.36s user 3.62s system 45% cpu 21.901 total
scp -q benchmark3 192.168.56.53: 6.38s user 3.70s system 45% cpu 22.352 total
sue@taiyo% repeat 10 zsh -c 'time rsync benchmark3 192.168.56.53:'
rsync benchmark3 192.168.56.53: 4.49s user 0.20s system 31% cpu 14.750 total
rsync benchmark3 192.168.56.53: 4.47s user 0.24s system 28% cpu 16.444 total
rsync benchmark3 192.168.56.53: 4.69s user 0.24s system 33% cpu 14.831 total
rsync benchmark3 192.168.56.53: 4.64s user 0.22s system 29% cpu 16.220 total
rsync benchmark3 192.168.56.53: 4.46s user 0.23s system 28% cpu 16.193 total
rsync benchmark3 192.168.56.53: 4.47s user 0.23s system 30% cpu 15.468 total
rsync benchmark3 192.168.56.53: 4.46s user 0.24s system 33% cpu 14.113 total
rsync benchmark3 192.168.56.53: 4.52s user 0.24s system 36% cpu 12.973 total
rsync benchmark3 192.168.56.53: 4.51s user 0.23s system 30% cpu 15.640 total
rsync benchmark3 192.168.56.53: 4.48s user 0.23s system 34% cpu 13.560 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment