Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Mac OS X 10.15
Desktop
one year ago
for loop
967.4M/s
Array.prototype.find
3K/s
Array.prototype.findIndex
2K/s
View exact numbers
Test name Executions per second
for loop 967,372,032 Ops/sec
Array.prototype.find 2,552 Ops/sec
Array.prototype.findIndex 2,230 Ops/sec
Script Preparation code:
Tests: