Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Chrome 77
Mac OS X 10.12.6
Desktop
5 years ago
Test name Executions per second
_.union 1045495.7 Ops/sec
Set() 1528737.8 Ops/sec
Set() convert back to array 1193044.0 Ops/sec
Concat & Filter 1737006.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • _.union

  • Set()

  • Set() convert back to array

  • Concat & Filter


;