Includes vs binary vs Map.has() vs Obj[]Fastest: Obj[] (29.4x faster)
37,857,708 ops/sec
32,104,814 ops/sec
15,371,528 ops/sec
1,288,652 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Includes | |
| binary | |
| Map.has() | |
| Obj[] |
| Test name | Executions per second |
|---|---|
| ✓ Obj[] | 71,325,104 Ops/sec |
| Map.has() | 70,701,072 Ops/sec |
| binary | 19,182,264 Ops/sec |
| Includes | 491,244 Ops/sec |