根据这篇文章,dash被选为/bin/sh因为bash较慢:Dash as /bin/sh
dash
/bin/sh
bash
有没有具体的数字来说明速度有多快dash?
如果使用bash而不是dash引导 Ubuntu需要多长时间?
上面链接的论点今天仍然有效吗?对于背景:system-v init 使用了很多 shell 脚本,但 systemd 没有。
这个问题与综合基准测试中的速度无关。它关乎最终用户的整体显着利益。关于 dash 与 bash 速度的综合基准测试并没有回答这个问题。
bash benchmarks dash-shell
bash ×1
benchmarks ×1
dash-shell ×1