Skip to content

Instantly share code, notes, and snippets.

@ravibhure
Created January 29, 2015 10: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 ravibhure/61c6445e6790e78e2166 to your computer and use it in GitHub Desktop.
Save ravibhure/61c6445e6790e78e2166 to your computer and use it in GitHub Desktop.
A very crude and brutish disk benchmark running mkdir and git init 5,000 times.
# time sh gibench.sh
dir=gitemp
rm -rf $dir &> /dev/null
mkdir $dir
cd $dir
for (( c=1; c<=5000; c++ ))
do
mkdir $c
cd $c
git init
cd ../
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment