Tests:
-
_.union
-
Set()
-
Set() convert back to array
-
Concat & Filter
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0.1 Safari/605.1.15
Safari 18 on Mac OS X 10.15.7
View result in a separate tab
Set() convert back to array
4.6M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Concat & Filter
|
8,762,077 Ops/sec |
|
Set()
|
7,146,668 Ops/sec |
|
_.union
|
4,968,239 Ops/sec |
|
Set() convert back to array
|
4,612,684 Ops/sec |
Do you really want to delete benchmark?