Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Mac OS X 10.15.7
Desktop
18 hours ago
Test name Executions per second
forEach 9400808.0 Ops/sec
for 21800396.0 Ops/sec
for optimized 21673488.0 Ops/sec
reduce 13812274.0 Ops/sec
while 8095509.5 Ops/sec
for in 914395.6 Ops/sec
for of 16905940.0 Ops/sec
HTML Preparation code:
Tests:
  • forEach

  • for

  • for optimized

  • reduce

  • while

  • for in

  • for of