time seq 100 | xargs -i bash -c 'echo {}'
; 2.530s
time seq 100 | xargs -i sh -c 'echo {}'
; 0.223s
why?
PS: The title of mine for this post is more intuitive to be discovered or searched by google or any sort of search engines.
time seq 100 | xargs -i bash -c 'echo {}'
; 2.530s
time seq 100 | xargs -i sh -c 'echo {}'
; 0.223s
why?
PS: The title of mine for this post is more intuitive to be discovered or searched by google or any sort of search engines.
shis symlink to/bin/dash, which is different from/bin/bash, and/bin/shsymlinked to/bin/dashexactly because it's considerably faster shell – Sergiy Kolodyazhnyy Feb 11 '19 at 10:24