HTML Preparation code:
Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Javascript Set intersection (larger set first)
    Lodash intersection
    Javascript Array intersection
    Javascript Set intersection (new feature) (larger set first)
    Javascript Set intersection (smaller set first)
    Javascript Set intersection (new feature) (smaller set first)
    Javascript Set intersection (new feature) (smaller set first) (with set init time)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122 on Windows
View result in a separate tab
Javascript Set intersection (new feature) (smaller set first)
1.7M/s
Javascript Set intersection (new feature) (larger set first)
1.6M/s
Javascript Set intersection (smaller set first)
318K/s
Lodash intersection
202K/s
Javascript Set intersection (new feature) (smaller set first) (with set init time)
172K/s
Javascript Set intersection (larger set first)
69K/s
Javascript Array intersection
68K/s
View exact numbers
Test name Executions per second
Javascript Set intersection (new feature) (smaller set first) 1,720,665 Ops/sec
Javascript Set intersection (new feature) (larger set first) 1,613,542 Ops/sec
Javascript Set intersection (smaller set first) 317,654 Ops/sec
Lodash intersection 201,605 Ops/sec
Javascript Set intersection (new feature) (smaller set first) (with set init time) 171,541 Ops/sec
Javascript Set intersection (larger set first) 69,479 Ops/sec
Javascript Array intersection 68,214 Ops/sec