Test name | Executions per second |
---|---|
Array.includes, 10 000 elements | 58439.3 Ops/sec |
Array.includes, 1 000 000 elements | 565.4 Ops/sec |
Set.has, 10 000 elements | 7675030.5 Ops/sec |
Set.has, 1 000 000 elements | 7430541.5 Ops/sec |
Array to Set + Set.has, 10 000 elements | 5971.7 Ops/sec |
Array to Set + Set.has x 100, 10 000 elements | 5856.7 Ops/sec |
Array.includes x 100, 10 000 elements | 551.3 Ops/sec |