Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36
Chrome Mobile 144
Android
Mobile
7 months ago
Benchmark.js
Set.has non-Existing
47.9M/s
Set.has existing
45.3M/s
Array.find existing
30.0M/s
Array.find non-existing
24.7M/s
View exact numbers
Test name Executions per second
Set.has non-Existing 47,869,588 Ops/sec
Set.has existing 45,339,616 Ops/sec
Array.find existing 30,043,012 Ops/sec
Array.find non-existing 24,686,876 Ops/sec
Script Preparation code:
Tests: