Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
2 years ago
Benchmark.js
Set() convert back to array
2.5M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Set()
|
2,517,980 Ops/sec |
|
Set() convert back to array
|
2,508,399 Ops/sec |
|
_.union
|
1,393,614 Ops/sec |
Tests:
-
_.union
-
Set()
-
Set() convert back to array