Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Chrome 58
Mac OS X 10.12.4
Other
7 years ago
Test name Executions per second
forEach 6153.2 Ops/sec
for..of 39702.1 Ops/sec
forEach func 6230.2 Ops/sec
for of transpiled 98673.7 Ops/sec
for of transpiled simple 510.4 Ops/sec
Script Preparation code:
Tests:
  • forEach

  • for..of

  • forEach func

  • for of transpiled

  • for of transpiled simple


;