Skip to content

Instantly share code, notes, and snippets.

@paul-hammant
Created November 13, 2016 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paul-hammant/0581dd8062afbe1b6d19a42bba9a72dd to your computer and use it in GitHub Desktop.
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)
#!/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