Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Chrome 84
Mac OS X 10.15.4
Desktop
3 years ago
Test name Executions per second
forEach 305.1 Ops/sec
reduce 274.3 Ops/sec
map 302.8 Ops/sec
filter 298.5 Ops/sec
for 265.2 Ops/sec
while 338.0 Ops/sec
Script Preparation code:
Tests:
  • forEach

  • reduce

  • map

  • filter

  • for

  • while


;