Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Array.find existing
100.8M/s
Array.find non-existing
81.0M/s
Set.has existing
78.0M/s
Set.has non-Existing
45.5M/s

Fastest: Array.find existing (2.2x faster)

View exact numbers
  • Array.find existing: 100,811,920 ops/sec
  • Array.find non-existing: 81,014,248 ops/sec
  • Set.has existing: 78,036,760 ops/sec
  • Set.has non-Existing: 45,470,256 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.find existing
    Array.find non-existing
    Set.has existing
    Set.has non-Existing

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
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 on Android
View result in a separate tab
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