Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7
Safari 11
Mac OS X 10.11.6
Desktop
4 years ago
Test name Executions per second
reduce 36873.5 Ops/sec
for loop 314870.0 Ops/sec
forEach 33361.4 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • for loop

  • forEach