Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0
Firefox 120
Linux
Desktop
2 years ago
Benchmark.js
Using for loop
145.6M/s
Using find
66.2M/s
View exact numbers
Test name Executions per second
Using for loop 145,621,088 Ops/sec
Using find 66,239,196 Ops/sec
Script Preparation code:
Tests: