Test case name | Result |
---|---|
_.partitionBy(data, (v) => v.name); | |
partitionBy with native reduce | |
partitionBy with forEach | |
partitionBy with for loop |
Test name | Executions per second |
---|---|
_.partitionBy(data, (v) => v.name); | 0.0 Ops/sec |
partitionBy with native reduce | 395742.8 Ops/sec |
partitionBy with forEach | 3115273.5 Ops/sec |
partitionBy with for loop | 4565321.5 Ops/sec |