Why 'xargs bash -c' is far slower than 'xargs sh -c'?

by user58029   Last Updated February 11, 2019 10:02 AM - source

time seq 100 | xargs -i bash -c 'echo {}'

; 2.530s

time seq 100 | xargs -i sh -c 'echo {}'

; 0.223s


PS: The title of mine for this post is more intuitive to be discovered or searched by google or any sort of search engines.

Tags : bash sh xargs

Related Questions

difficulty implementing xargs properly,

Updated November 10, 2017 17:02 PM

Finding, moving and removing in Ubuntu

Updated September 04, 2015 04:01 AM