Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126
Linux
Desktop
3 months ago
Test name Executions per second
map comparison: for..of 35.0 Ops/sec
map comparison: .map 41.0 Ops/sec
reduce comparision: for..of 85.6 Ops/sec
reduce comparision: .reduce 99.2 Ops/sec
raw iteration: for..of 110.1 Ops/sec
raw iteration: forEach 163.2 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