Skip to content

Instantly share code, notes, and snippets.

@Ken-Kuroki
Created November 15, 2019 06:57
Show Gist options
  • Save Ken-Kuroki/40b526ac21bde4389708516fec641ef0 to your computer and use it in GitHub Desktop.
Save Ken-Kuroki/40b526ac21bde4389708516fec641ef0 to your computer and use it in GitHub Desktop.
Test file transfer speed
#!/bin/sh
for i in $(seq 01 10); do
fallocate -l 1GB dummy${i}
done
for i in $(seq 01 10); do
echo "File${i} start, $(date +%T)"
cp dummy${i} /foo/bar/destination/
done
echo "All done, $(date +%T)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment