HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 98 community runs

Desktop Results:
Chrome 83 runs
Lodash intersection
4.0M/s
Javascript Set intersection
2.6M/s

Fastest: Lodash intersection (1.5x faster)

View exact numbers
  • Lodash intersection: 4,007,354 ops/sec
  • Javascript Set intersection: 2,619,348 ops/sec
Firefox 9 runs
Lodash intersection
3.6M/s
Javascript Set intersection
1.6M/s

Fastest: Lodash intersection (2.3x faster)

View exact numbers
  • Lodash intersection: 3,634,480 ops/sec
  • Javascript Set intersection: 1,598,566 ops/sec
Mobile Results:
Chrome 6 runs
Lodash intersection
2.3M/s
Javascript Set intersection
1.4M/s

Fastest: Lodash intersection (1.6x faster)

View exact numbers
  • Lodash intersection: 2,266,612 ops/sec
  • Javascript Set intersection: 1,421,017 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
    Javascript Set intersection
    Lodash intersection

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Mac OS X 10.15.7
View result in a separate tab
Lodash intersection
9.8M/s
Javascript Set intersection
8.0M/s
View exact numbers
Test name Executions per second
Lodash intersection 9,825,242 Ops/sec
Javascript Set intersection 8,029,676 Ops/sec