Test case name | Result |
---|---|
1. Assign with forEach | |
2. Object.fromEntries | |
3. reduce (reuse object) | |
4. reduce (reuse object 2) | |
5. reduce (temporary object 1) | |
6. reduce (temporary object 2) |
Test name | Executions per second |
---|---|
1. Assign with forEach | 624.7 Ops/sec |
2. Object.fromEntries | 388.5 Ops/sec |
3. reduce (reuse object) | 480.7 Ops/sec |
4. reduce (reuse object 2) | 613.4 Ops/sec |
5. reduce (temporary object 1) | 11.4 Ops/sec |
6. reduce (temporary object 2) | 24.8 Ops/sec |