Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/118.0
Firefox 118
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
_.union 1784350.0 Ops/sec
Set() 1177155.5 Ops/sec
Set() using array spread 1028556.5 Ops/sec
Set() convert back to array 749202.8 Ops/sec
Set() convert back to array using array spread 779714.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • _.union

  • Set()

  • Set() using array spread

  • Set() convert back to array

  • Set() convert back to array using array spread