只需测试一个非常简单的命令:
while true; do bash -c "echo hello"; done
Run Code Online (Sandbox Code Playgroud)
你会发现Cygwin中的bash有多慢.有人知道为什么吗?
这是win7上cygwin 1.7的全新安装.
感谢Jared的测试理念,我将命令修改为此(添加bash -c):
time for i in {1..10} ; do bash -c "echo Hello" ; done
Hello
...
real 0m7.711s //it's the problem
user 0m0.091s
sys 0m0.476s
Run Code Online (Sandbox Code Playgroud) 我喜欢ZSH shell及其主题,但它非常慢.加载需要7到10秒.我也将它用作VS Code中的集成终端,即使加载速度很慢.这是我的.zshrc文件的副本.
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
export PS1="[%* - %D] %d %% "
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
DEFAULT_USER=13000
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be …Run Code Online (Sandbox Code Playgroud) cygwin ×3
babun ×1
bash ×1
batch-file ×1
oh-my-zsh ×1
performance ×1
windows ×1
zsh ×1
zshrc ×1