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

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    _.union
    Set()
    Set() using array spread
    Set() convert back to array
    Set() convert back to array using array spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/118.0
Firefox 118 on Mac OS X 10.15
View result in a separate tab
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