Why does Cygwin execute shell commands very slowly?

前端 未结 11 1146
说谎
说谎 2020-12-08 11:29

Just tests a very simple command like:

while true; do bash -c \"echo hello\"; done

You will find how much slow the bash in Cygwin is. Does

11条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 11:59

    Finally, I found the source - a service named "QQPCMgr RTP Service" running on my office computer, it's the real time protection service of "QQ PC Manager".

    By disabling it, the time of the script in the question falls back to:

    real    0m0.943s
    user    0m0.105s
    sys     0m0.231s
    

    I have told the developers of QQPCMgr about this, hope they will find the reason.

    This still much slower than Linux, but gets the same "real time" of other cygwin computers.

    Thank you all!

提交回复
热议问题