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