Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36 EdgA/126.0.0.0
Chrome Mobile 126
Android
Mobile
3 months ago
Test name Executions per second
map comparison: for..of 26.4 Ops/sec
map comparison: .map 45.4 Ops/sec
reduce comparision: for..of 59.6 Ops/sec
reduce comparision: .reduce 48.7 Ops/sec
raw iteration: for..of 64.4 Ops/sec
raw iteration: forEach 63.0 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


;