Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Chrome 58
Mac OS X 10.12.5
Other
7 years ago
Test name Executions per second
forEach 5892.4 Ops/sec
for..of 38560.2 Ops/sec
forEach func 6062.1 Ops/sec
for of transpiled 98933.2 Ops/sec
for of transpiled simple 580.3 Ops/sec
Script Preparation code:
Tests:
  • forEach

  • for..of

  • forEach func

  • for of transpiled

  • for of transpiled simple


;