Run details:
Mozilla/5.0 (Linux; Android 9; Redmi Note 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
foreach 1.6 Ops/sec
for 0.1 Ops/sec
map 1.5 Ops/sec
while 0.9 Ops/sec
some 508911.1 Ops/sec
every 771827.9 Ops/sec
filter 1.5 Ops/sec
find 524113.7 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • while

  • some

  • every

  • filter

  • find