Test name | Executions per second |
---|---|
Array.includes, 10 000 elements | 62706.0 Ops/sec |
Array.includes, 1 000 000 elements | 625.3 Ops/sec |
Set.has, 10 000 elements | 2121884.5 Ops/sec |
Set.has, 1 000 000 elements | 1106783.1 Ops/sec |
Array to Set + Set.has, 10 000 elements | 1691.5 Ops/sec |
Array to Set + Set.has x 100, 10 000 elements | 1604.7 Ops/sec |
Array.includes x 100, 10 000 elements | 28356.6 Ops/sec |