Script Preparation code:
Tests:
  • npm:fast-cartesian

  • native .reduce() with flatmap, concat

  • native .reduce() with map, spread

  • cartesian from https://stackoverflow.com/a/43053803

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
Test name Executions per second
npm:fast-cartesian 1118.0 Ops/sec
native .reduce() with flatmap, concat 1603977.5 Ops/sec
native .reduce() with map, spread 2631697.8 Ops/sec
cartesian from https://stackoverflow.com/a/43053803 1009096512.0 Ops/sec