Run details:
Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Windows 8
Desktop
2 years ago
Test name Executions per second
forEach 429303.6 Ops/sec
for 3090697.0 Ops/sec
for optimized 2914273.8 Ops/sec
reduce 1062315.1 Ops/sec
while 2472145.5 Ops/sec
for in 44624.1 Ops/sec
for of 712397.3 Ops/sec
for of babel 57.8 Ops/sec
HTML Preparation code:
Tests:
  • forEach

  • for

  • for optimized

  • reduce

  • while

  • for in

  • for of

  • for of babel