Test case name | Result |
---|---|
Set.has (10 items) | |
Array.includes | |
Set.has (1,000 items) | |
Array.includes (1,000 items) |
Test name | Executions per second |
---|---|
Set.has (10 items) | 3933091.0 Ops/sec |
Array.includes | 1020704000.0 Ops/sec |
Set.has (1,000 items) | 43240.2 Ops/sec |
Array.includes (1,000 items) | 43374.1 Ops/sec |