_.isEqual Level 1 vs JSON.stringify Level 1 vs Naive array equalsFastest: Naive array equals (4366.4x faster)
48,408,992 ops/sec
228,035 ops/sec
11,087 ops/sec
Fastest: Naive array equals (263.3x faster)
4,449,844 ops/sec
566,041 ops/sec
16,900 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| _.isEqual Level 1 | |
| JSON.stringify Level 1 | |
| Naive array equals |
| Test name | Executions per second |
|---|---|
| ✓ Naive array equals | 5,976,977 Ops/sec |
| _.isEqual Level 1 | 809,214 Ops/sec |
| JSON.stringify Level 1 | 26,325 Ops/sec |