lodash defaulTo vs native nullish operationFastest: native nullish operation (1.3x faster)
169,453,296 ops/sec
133,532,864 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| lodash defaulTo | |
| native nullish operation |
| Test name | Executions per second |
|---|---|
| ✓ native nullish operation | 148,188,384 Ops/sec |
| lodash defaulTo | 133,532,864 Ops/sec |