Run details:
Mozilla/5.0 (Linux; Android 12; POCO F2 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.54 Mobile Safari/537.36
Chrome Mobile 124
Android
Mobile
7 months ago
Test name Executions per second
map comparison: for..of 24.1 Ops/sec
map comparison: .map 16.0 Ops/sec
reduce comparision: for..of 71.8 Ops/sec
reduce comparision: .reduce 61.8 Ops/sec
raw iteration: for..of 75.7 Ops/sec
raw iteration: forEach 84.4 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


;