Yuan Yijun (bbbush) wrote,
Yuan Yijun
bbbush

Why is msysgit so fast?

git is alias to msysgit (1.5.6.1) while git.exe is the cygwin version
(1.5.6.4). It seems cygwin git keeps slow with either cold or warm
cache, and msysgit is 2 times faster at first run, 5 times faster in
the following.



byuan@szpc527g /cygdrive/d/AWD3.0/clientSite
$ time git ls-files --others -X .gitignore

real 0m1.680s
user 0m0.031s
sys 0m0.031s

byuan@szpc527g /cygdrive/d/AWD3.0/clientSite
$ time git.exe ls-files --others -X .gitignore

real 0m3.287s
user 0m0.530s
sys 0m2.452s

byuan@szpc527g /cygdrive/d/AWD3.0/clientSite
$ time git.exe ls-files --others -X .gitignore

real 0m3.216s
user 0m0.327s
sys 0m2.515s

byuan@szpc527g /cygdrive/d/AWD3.0/clientSite
$ time git ls-files --others -X .gitignore

real 0m0.651s
user 0m0.015s
sys 0m0.015s

byuan@szpc527g /cygdrive/d/AWD3.0/clientSite
$ time git ls-files --others -X .gitignore

real 0m0.638s
user 0m0.031s
sys 0m0.000s

byuan@szpc527g /cygdrive/d/AWD3.0/clientSite
$ time git.exe ls-files --others -X .gitignore

real 0m3.227s
user 0m0.406s
sys 0m2.702s

byuan@szpc527g /cygdrive/d/AWD3.0/clientSite
$ time git.exe ls-files --others -X .gitignore

real 0m3.232s
user 0m0.358s
sys 0m2.655s



and in Fedora, another 5 times faster. This is why people love linux.

[yuan@mstar clientSite]$ time git ls-files --others -X .gitignore

real 0m0.110s
user 0m0.063s
sys 0m0.031s
[yuan@mstar clientSite]$ time git ls-files --others -X .gitignore

real 0m0.089s
user 0m0.053s
sys 0m0.036s






It is said that git-1.6 will be released soon and everything has been
in cygwin version.
Tags: fedora
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment