HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 10 runs
Difference - includes
7.4M/s
Intersection - includes
7.0M/s
Difference - Full
5.8M/s
Difference - Partial
5.7M/s
Intersection - Partial
5.7M/s
Intersection - Full
5.0M/s

Fastest: Difference - includes (1.5x faster)

View exact numbers
  • Difference - includes: 7,366,918 ops/sec
  • Intersection - includes: 6,971,206 ops/sec
  • Difference - Full: 5,827,315 ops/sec
  • Difference - Partial: 5,733,924 ops/sec
  • Intersection - Partial: 5,731,109 ops/sec
  • Intersection - Full: 5,028,092 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
    Difference - Full
    Intersection - Full
    Difference - Partial
    Intersection - Partial
    Difference - includes
    Intersection - includes

    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/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36
Yandex Browser 25 on Mac OS X 10.15.7
View result in a separate tab
Difference - includes
23.6M/s
Intersection - includes
15.2M/s
Difference - Full
7.5M/s
Difference - Partial
6.6M/s
Intersection - Partial
5.3M/s
Intersection - Full
4.2M/s
View exact numbers
Test name Executions per second
Difference - includes 23,638,888 Ops/sec
Intersection - includes 15,179,077 Ops/sec
Difference - Full 7,547,808 Ops/sec
Difference - Partial 6,603,016 Ops/sec
Intersection - Partial 5,343,216 Ops/sec
Intersection - Full 4,222,044 Ops/sec