Run details:
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
Windows
Desktop
9 months ago
Test name Executions per second
Javascript Set intersection (larger set first) 69478.7 Ops/sec
Lodash intersection 201604.9 Ops/sec
Javascript Array intersection 68214.1 Ops/sec
Javascript Set intersection (new feature) (larger set first) 1613541.5 Ops/sec
Javascript Set intersection (smaller set first) 317653.8 Ops/sec
Javascript Set intersection (new feature) (smaller set first) 1720664.9 Ops/sec
Javascript Set intersection (new feature) (smaller set first) (with set init time) 171540.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • 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)


;