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

  • zz: 墙、感染、信任和欺骗 by 霍炬 (歪理邪说 2015-09-21)

    (全文转载自 墙、感染、信任和欺骗 2015-09-21 霍炬 歪理邪说) 先跟读者道个歉,最近一段时间有点忙,好久没更新。 而写文章这事,一旦有一段时间不写就会越来越写不下去。 很长一段时间我甚至不敢打开公众帐号后台,一怕被催稿, 二怕看到惨烈的退订数字以至于更不敢写……

  • zz:Pragmatism

    DDJ_1306, "Orthodoxy vs. Pragmatism, or How I Became a Better Developer" By Andrew Binstock "[...]When young I was and green, I had…

  • zz:回来后,一些搞不懂的“共识”

    http://www.mitbbs.com/article_t/Returnee/13379685.html 共识一:欧美搞设计、掌握技术和市场,中国只会生产。利润都被欧美赚走了。 但是结果是中国越来越有钱,欧美越来越没钱,这算是共识吗? 共识二:中国贫富差距大,钱都被少数人赚去了;…

  • 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