Run details:
Mozilla/5.0 (Linux; Android 10; RMX1911) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.85 Mobile Safari/537.36
Chrome Mobile 94
Android
Mobile
2 years ago
Test name Executions per second
foreach 3.4 Ops/sec
for 1.9 Ops/sec
map 3.3 Ops/sec
while 1.9 Ops/sec
some 1154091.5 Ops/sec
every 1733721.2 Ops/sec
filter 3.1 Ops/sec
find 1156348.5 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • while

  • some

  • every

  • filter

  • find


;