Re: less Idle time with busybox ash as bash vs bash

2018-09-09 Thread Denys Vlasenko
In Fri, Aug 31, 2018 at 8:11 PM James Hanley wrote: > We had some bash scripts that we converted to use busybox ash as bash > (removed any array constructs) and when comparing the two scripts - it > seems that running them under busybox yields less idle time compared > to bash. > > I was

Re: less Idle time with busybox ash as bash vs bash

2018-09-07 Thread Michael Conrad
Busybox utilities are written in whatever way uses the fewest bytes.  Most standard utilities are optimized for speed.  Sometimes the reduced footprint of busybox can offset the lack of speed optimization because it can remain in disk cache or processor cache.  And sometimes not. If your bash

Re: less Idle time with busybox ash as bash vs bash

2018-09-07 Thread Sam Liddicott
Bash has some built-in too. Sam On 31 Aug 2018 19:11, "James Hanley" wrote: > We had some bash scripts that we converted to use busybox ash as bash > (removed any array constructs) and when comparing the two scripts - it > seems that running them under busybox yields less idle time compared >

Re: less Idle time with busybox ash as bash vs bash

2018-09-06 Thread James Hanley
To be clear - when we run the same script under bash vs busybox ash as bash - bash yields 10% more idle time to the system. I assumed that the fork/exec of all the underlying utilities (test etc) compared to the vfork or function calls in busybox would yield better results (not worse) then

less Idle time with busybox ash as bash vs bash

2018-08-31 Thread James Hanley
We had some bash scripts that we converted to use busybox ash as bash (removed any array constructs) and when comparing the two scripts - it seems that running them under busybox yields less idle time compared to bash. I was expecting that busybox would (itself) take up more time simply because