Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
Firefox 74
Windows
Desktop
4 years ago
Test name Executions per second
.map 11025.9 Ops/sec
.forEach 69562.7 Ops/sec
for loop 8128.5 Ops/sec
for of loop 19846.3 Ops/sec
for of keys 8323.3 Ops/sec
Script Preparation code:
Tests:
  • .map

  • .forEach

  • for loop

  • for of loop

  • for of keys


;