Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0
Firefox 97
Windows
Desktop
2 years ago
Test name Executions per second
foreach 123.1 Ops/sec
for 708.5 Ops/sec
map 52.9 Ops/sec
while 696.5 Ops/sec
some 123910016.0 Ops/sec
every 634135040.0 Ops/sec
filter 65.8 Ops/sec
find 35503528.0 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • while

  • some

  • every

  • filter

  • find