Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Mac OS X 10.15.7
Desktop
11 months ago
Test name Executions per second
map comparison: for..of 113.8 Ops/sec
map comparison: .map 150.9 Ops/sec
reduce comparision: for..of 333.1 Ops/sec
reduce comparision: .reduce 153.9 Ops/sec
raw iteration: for..of 347.4 Ops/sec
raw iteration: forEach 353.7 Ops/sec
Script Preparation code:
Tests:
  • map comparison: for..of

  • map comparison: .map

  • reduce comparision: for..of

  • reduce comparision: .reduce

  • raw iteration: for..of

  • raw iteration: forEach