Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
Array.every => Array.includes
13.0M/s
Array.every => Set.has with new Set() creation
823K/s

Fastest: Array.every => Array.includes (15.8x faster)

View exact numbers
  • Array.every => Array.includes: 12,990,542 ops/sec
  • Array.every => Set.has with new Set() creation: 822,626 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.every => Array.includes
    Array.every => Set.has with new Set() creation

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Mac OS X 10.15.7
View result in a separate tab
Array.every => Array.includes
44.6M/s
Array.every => Set.has with new Set() creation
840K/s
View exact numbers
Test name Executions per second
Array.every => Array.includes 44,636,192 Ops/sec
Array.every => Set.has with new Set() creation 840,470 Ops/sec