Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
one month ago
Test name Executions per second
map comparison: for..of 32.1 Ops/sec
map comparison: .map 54.0 Ops/sec
reduce comparision: for..of 61.0 Ops/sec
reduce comparision: .reduce 61.4 Ops/sec
raw iteration: for..of 65.9 Ops/sec
raw iteration: forEach 86.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


;