1.
2.
3.
4.
5.
6.
after clicking button, to wait until done needs several minutes
run code 1 "  0 4000000 for 1 + next ." by jef needs 8234 ms
run code 2 ": x 4000000 for 1 + next . ; 0 x" 2 by jef needs 4290 ms
run code 3 "  0 4000000 for 1+ next ." by trans needs 42 ms
run code 4 ": x 4000000 for 1+ next . ; 0 x" by trans needs 43 ms
run code 5 "var _i=4000000,_n=0;while(_i-->=0){_n=_n+1};console.log(_n)" by js1 needs 2088 ms
run code 6 "var _i=4000000,_n=0;while(_i-->=0){_n=_n+1};console.log(_n)" by js2 needs 13 ms