Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
with Sets
194.7M/s
lodash.difference
17K/s
with filter-includes
505/s

Fastest: with Sets (385351.0x faster)

View exact numbers
  • with Sets: 194,678,432 ops/sec
  • lodash.difference: 17,443 ops/sec
  • with filter-includes: 505 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
    with Sets
    with filter-includes
    lodash.difference

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0
Firefox 152 on Windows
View result in a separate tab
with Sets
891.9M/s
lodash.difference
4K/s
with filter-includes
202/s
View exact numbers
Test name Executions per second
with Sets 891,877,248 Ops/sec
lodash.difference 4,434 Ops/sec
with filter-includes 202 Ops/sec