Test case name | Result |
---|---|
npm:fast-cartesian | |
native .reduce() with flatmap, concat | |
native .reduce() with map, spread | |
cartesian from https://stackoverflow.com/a/43053803 |
Test name | Executions per second |
---|---|
npm:fast-cartesian | 11623.7 Ops/sec |
native .reduce() with flatmap, concat | 1939001.0 Ops/sec |
native .reduce() with map, spread | 5404997.0 Ops/sec |
cartesian from https://stackoverflow.com/a/43053803 | 944554600.0 Ops/sec |