Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.23 Safari/537.36
Chrome 89
Windows
Desktop
3 years ago
Test name Executions per second
reverse and for..of (large array) 111774.5 Ops/sec
For loop (large array) 6841.1 Ops/sec
reverse and for..of (small array) 6311238.0 Ops/sec
For loop (small array) 1322508.4 Ops/sec
Script Preparation code:
Tests:
  • reverse and for..of (large array)

  • For loop (large array)

  • reverse and for..of (small array)

  • For loop (small array)


;