Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1.1 Safari/605.1.15
Safari 18
Mac OS X 10.15.7
Desktop
24 days ago
Test name Executions per second
forEach 4336772.0 Ops/sec
for 20789508.0 Ops/sec
for optimized 22617684.0 Ops/sec
reduce 2750479.0 Ops/sec
while 23248602.0 Ops/sec
for in 462234.7 Ops/sec
for of 845297.1 Ops/sec
for of babel 26410.6 Ops/sec
HTML Preparation code:
Tests:
  • forEach

  • for

  • for optimized

  • reduce

  • while

  • for in

  • for of

  • for of babel