Run details:
Mozilla/5.0 (Windows NT 6.2; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
Chrome 81
Windows 8
Desktop
4 years ago
Test name Executions per second
For loop 3240548.5 Ops/sec
While loop 1978351.9 Ops/sec
Tests:
  • For loop

  • While loop