Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Use this to work out that your subversion install is going to under perform (unknown combinations of OS/deps/CPU/RAM/drive)
#!/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