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) 70135.4 Ops/sec
Lodash intersection 182721.8 Ops/sec
Javascript Array intersection 67760.9 Ops/sec
Javascript Set intersection (new feature) (larger set first) 1621809.5 Ops/sec
Javascript Set intersection (smaller set first) 312044.4 Ops/sec
Javascript Set intersection (new feature) (smaller set first) 1709402.2 Ops/sec
Javascript Set intersection (new feature) (smaller set first) (with set init time) 179355.4 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)


;