time for ((i=0;i<10000;i++)) do ((sum+=i)); done
real 0m0.086suser 0m0.079ssys 0m0.007stime awk 'BEGIN{for(i=0;i<10000;i++) sum+=i; print sum}'
real 0m0.002suser 0m0.001ssys 0m0.001s