Object.fromEntries vs _.fromPairsFastest: _.fromPairs (2.2x faster)
10,542,982 ops/sec
4,827,386 ops/sec
Fastest: _.fromPairs (1.4x faster)
28,325,088 ops/sec
19,574,964 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Object.fromEntries | |
| _.fromPairs |
| Test name | Executions per second |
|---|---|
| ✓ _.fromPairs | 35,141,000 Ops/sec |
| Object.fromEntries | 29,372,228 Ops/sec |