Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Linux
Desktop
2 years ago
Benchmark.js
Set() convert back to array
2.9M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Set()
|
4,162,802 Ops/sec |
|
Set() convert back to array
|
2,903,554 Ops/sec |
|
_.union
|
2,514,391 Ops/sec |
Tests:
-
_.union
-
Set()
-
Set() convert back to array