Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    npm:fast-cartesian
    native .reduce() with flatmap, concat
    native .reduce() with map, spread
    cartesian from https://stackoverflow.com/a/43053803

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115 on Windows 8.1
View result in a separate tab
cartesian from https://stackoverflow.com/a/43053803
1009.1M/s
native .reduce() with map, spread
2.6M/s
native .reduce() with flatmap, concat
1.6M/s
npm:fast-cartesian
1K/s
View exact numbers
Test name Executions per second
cartesian from https://stackoverflow.com/a/43053803 1,009,096,512 Ops/sec
native .reduce() with map, spread 2,631,698 Ops/sec
native .reduce() with flatmap, concat 1,603,978 Ops/sec
npm:fast-cartesian 1,118 Ops/sec