Object access vs Array findFastest: Object access (8.3x faster)
29,967 ops/sec
3,628 ops/sec
Fastest: Object access (25.3x faster)
127,020 ops/sec
5,014 ops/sec
Fastest: Object access (8.4x faster)
14,135 ops/sec
1,689 ops/sec
Fastest: Object access (4.8x faster)
18,210 ops/sec
3,764 ops/sec
Fastest: Object access (5.0x faster)
23,821 ops/sec
4,806 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Object access | |
| Array find |
| Test name | Executions per second |
|---|---|
| ✓ Object access | 1,907,334 Ops/sec |
| Array find | 1,676 Ops/sec |