Created
November 13, 2016 11:03
-
-
Save paul-hammant/0581dd8062afbe1b6d19a42bba9a72dd to your computer and use it in GitHub Desktop.
Use this to work out that your subversion install is going to under perform (unknown combinations of OS/deps/CPU/RAM/drive)
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
#!/bin/bash | |
typ="$1" | |
if [ "$typ" == "" ]; then | |
typ="fsfs" | |
fi | |
if [ "$typ" != "fsfs" ] && [ "$typ" != "fsx" ]; then | |
echo "Usage: svn_speed_test.sh fsx|fsfs" | |
exit 10 | |
fi | |
svnadmin create --fs-type "$typ" svnSpeedTestLocalServer | |
svn checkout file://$(pwd)/svnSpeedTestLocalServer svnSpeedTestLocalCheckout | |
cd svnSpeedTestLocalCheckout | |
openssl rand 10000000 | base64 > banana | |
svn add banana | |
echo "testing commit of large file to a local $typ repository, should take no more than a few seconds" | |
time svn ci -m "test banana" | |
cd .. | |
rm -rf svnSpeedTestLocalServer svnSpeedTestLocalCheckout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment