-
-
Save ttaylorr/8236014ec48d3528f72530e5a9a2b27a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
grep "real" $1 \ | |
| grep -o "m\(.*\)s\(.*\)" \ | |
| sed -e 's/^m/0m/' \ | |
| tr -s 'ms' ' ' | awk '{ print ($1*60)+$2 }' \ | |
| sort -n \ | |
| tail -n +2 | tail -r | tail -n +2 \ | |
| awk ' | |
{ | |
sum += $1; | |
n++; | |
} | |
END { | |
print sum / n; | |
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
while getopts "n:" arg; do | |
case $arg in | |
n) TEST_ITERATIONS="$OPTARG"; ;; | |
esac | |
done | |
TEST_CMD="${@: -1}" | |
TEST_DESTINATION="$(mktemp -d)" | |
echo "TEST_CMD: $TEST_CMD" | |
echo "TEST_DESTINATION: $TEST_DESTINATION" | |
echo "TEST_ITERATIONS: $TEST_ITERATIONS" | |
echo | |
for i in `seq 1 "$TEST_ITERATIONS"`; do | |
{ | |
time $TEST_CMD $TEST_DESTINATION/$i; | |
} 2>&1 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git lfs clone | GIT_LFS_SKIP_SMUDGE git clone && git lfs pull | git clone | |||||
---|---|---|---|---|---|---|---|
delay=enabled (git —version=2.14.1.145.gb3622a433) | Local copy | lfs.concurrenttransfers=1 | 9.02767 | ||||
lfs.concurrenttransfers=3 | 7.41867 | ||||||
lfs.concurrenttransfers=8 | 7.70833 | ||||||
lfs.concurrenttransfers=16 | 7.44933 | ||||||
lfs.concurrenttransfers=32 | 7.71067 | ||||||
Remote copy | lfs.concurrenttransfers=1 | 45.6193 | |||||
lfs.concurrenttransfers=3 | 28.6867 | ||||||
lfs.concurrenttransfers=8 | 14.9877 | ||||||
lfs.concurrenttransfers=16 | 13.8893 | ||||||
lfs.concurrenttransfers=32 | 13.7767 | ||||||
delay=disabled (git —version=2.14.1) | Local copy | lfs.concurrenttransfers=1 | 8.47467 | 0.785333 | 8.81433 | 29.2297 | |
lfs.concurrenttransfers=3 | 8.91833 | 0.754667 | 8.73833 | ||||
lfs.concurrenttransfers=8 | 8.19233 | 0.78 | 10.7213 | ||||
lfs.concurrenttransfers=16 | 9.957 | 1.03333 | 8.4833 | ||||
lfs.concurrenttransfers=32 | 9.341 | 0.788 | 8.94133 | ||||
Remote copy | lfs.concurrenttransfers=1 | 23.2133 | 0.344667 | 36.377 | 18.4657 | ||
lfs.concurrenttransfers=3 | 24.0113 | 0.305667 | 22.294 | ||||
lfs.concurrenttransfers=8 | 17.0337 | 0.317333 | 22.294 | ||||
lfs.concurrenttransfers=16 | 12.473 | 0.296667 | 12.4703 | ||||
lfs.concurrenttransfers=32 | 12.853 | 0.300333 | 11.7593 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment