New comment by beginner3456789 on void-packages repository https://github.com/void-linux/void-packages/issues/18777#issuecomment-586625090 Comment: Just to be curious, I have new results using mksh instead of bash and there is a big difference. This is for 100,000 iterations on my laptop with SSD instead of the previous hard disk test: beginning test with PATH= /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin 0m01.92s real 0m00.94s user 0m00.96s system beginning test with PATH= /usr/bin 0m01.07s real 0m00.72s user 0m00.34s system ``` #!/bin/ksh notfound() { echo echo "beginning test with PATH= $PATH" while [[ i -lt 100000 ]] do "foo${i}" 2>/dev/null (( i++ )) done } # first test PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin time (notfound) # second test PATH=/usr/bin time (notfound) ```