Script Preparation code:
Tests:
  • Object.fromEntries with Array.map

  • new Map with Array.map

  • Reduce (reusing object)

  • Reduce (creating temporary objects)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Object.fromEntries with Array.map
    new Map with Array.map
    Reduce (reusing object)
    Reduce (creating temporary objects)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0
Firefox 139 on Windows
View result in a separate tab
Test name Executions per second
Object.fromEntries with Array.map 3651.4 Ops/sec
new Map with Array.map 1373.0 Ops/sec
Reduce (reusing object) 7057.3 Ops/sec
Reduce (creating temporary objects) 0.3 Ops/sec