2010-04-08
Tro^WMicrobenchmarks!
This blog is far too low in trolling. As a start, everyone knows that git is fast and svn is slow, but I wasn't aware quite how shocking the difference was.
The test: committing a file that slowly increases in size, and a new file, 200 times.
git: 2 seconds. darcs: 10 seconds. bzr: 70 seconds. svn: 200 seconds.
No comment.
bzr 2.0.3 and git 1.5.6.5:
time ($CMD init && for i in $(seq 200); do echo $i >> foo && touch bar$i && $CMD add * &>/dev/null && $CMD commit -m "Whoosh"; done)
darcs (which, admittedly, took about 200 seconds to work out how to commit to) 2.0.2:
time ($CMD init && for i in $(seq 200); do echo $i >> foo && touch bar$i && $CMD add * &>/dev/null && $CMD record -a -Aa -m "Whoosh"; done)
svn 1.5.1:
rm -rf ../repo; svnadmin create ../repo && svn co file:///var/tmp/repo . && time (for i in $(seq 200); do echo $i >> foo && touch bar$i && $CMD add * && $CMD commit -m "Whoosh"; done)