Test case name | Result |
---|---|
Reduce | |
Looping | |
Ifs | |
Destructuring | |
Object.entries | |
Single loop | |
Single reduce | |
Template string | |
Template function |
Test name | Executions per second |
---|---|
Reduce | 578124.6 Ops/sec |
Looping | 586238.5 Ops/sec |
Ifs | 645735.5 Ops/sec |
Destructuring | 588246.2 Ops/sec |
Object.entries | 540331.8 Ops/sec |
Single loop | 1172328.0 Ops/sec |
Single reduce | 1114334.0 Ops/sec |
Template string | 35297730.0 Ops/sec |
Template function | 21520000.0 Ops/sec |