3 ms·
Dunno, the linked article looks like a conclusive performance advantage to me. Bash's own manual page concludes that "it's too big and too slow" in the BUGS se
by chasil 3y ago
Dunno, the linked article looks like a conclusive performance advantage to me.
Bash's own manual page concludes that "it's too big and too slow" in the BUGS section.
https://www.baeldung.com/linux/dash-vs-bash-performance https://www.baeldung.com/linux/dash-vs-bash-performance
- JdeBP 3y agoFeel free to go and convince https://news.ycombinator.com/item?id=35987961 https://news.ycombinator.com/item?id=35987961, who isn't convinced by the actual measurements that people did. (-:
- aidenn0 3y agoFWIW on My Machine(tm) bash goes from ~4 times slower to ~70% slower on the simple startup test just by changing the locale: $ time for i in $(seq 1 1000); do bash -c ":" ; done real 0m4.475s user 0m3.234s sys 0m1.287s $ time for i in $(seq 1 1000); do dash -c ":" ; done real 0m1.067s user 0m0.408s sys 0m0.704s $ (export LC_ALL=C; time for i in $(seq 1 1000); do dash -c ":" ; done) real 0m1.043s user 0m0.409s sys 0m0.679s $ (export LC_ALL=C; time for i in $(seq 1 1000); do bash -c ":" ; done) real 0m1.721s user 0m0.783s sys 0m0.986s