Test name | Executions per second |
---|---|
Reduce + spread | 66.0 Ops/sec |
Loop (for...in) with .keys() | 537.5 Ops/sec |
Loop (for...in) with .entries() | 761.2 Ops/sec |
Reduce + mutate | 235.3 Ops/sec |
Reduce + mutate with entries() | 291.5 Ops/sec |
Map with fromEntries | 534.6 Ops/sec |
Loop (for...in) with mutate | 901.2 Ops/sec |
Loop (for...in) with mutate (Object.assign) | 413.1 Ops/sec |
Loop (for...in) with mutate (save object[key]) | 899.1 Ops/sec |
Loop (for...in) with unsafe mutate | 273.3 Ops/sec |
Object.fromEntries with map | 526.9 Ops/sec |