On Oct 15, 2007, at 5:53 PM, Linus Torvalds wrote:
I re-used the test that was posted some time ago:
------------------------------------------------------------------------
---
#
# first create a tree of roughly 100k files
#
mkdir bummer
cd bummer
for ((i=0;i<100;i++)); do
mkdir $i && pushd $i;
for ((j=0;j<1000;j++)); do
echo "$j" >$j; done; popd;
done
#
# init and add this to git
#
time git init
git config user.email "no@thx"
git config user.name "nothx"
time git add .
time git commit -m 'buurrrrn' -a
for ((j=0;j<1000;j++)); do
echo "/pattern$j" >.git/info/exclude
done
#
# git-status, tunes in at around ~8s for me
#
time git-status
time git-status
time git-status
------------------------------------------------------------------------
---
[...]
git commit -m 'buurrrrn' -a 5.62s user 16.84s system 87% cpu 25.634
total
# On branch master
nothing to commit (working directory clean)
git-status 2.48s user 5.97s system 96% cpu 8.718 total
# On branch master
nothing to commit (working directory clean)
git-status 2.48s user 5.94s system 97% cpu 8.646 total
# On branch master
nothing to commit (working directory clean)
git-status 2.48s user 5.95s system 96% cpu 8.720 total
My machine is a Core2Duo 2Ghz 2G RAM.
--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory