Script Preparation code:
Tests:
  • Object.entries -> map -> Object.fromEntries

  • Object.entries -> reduce (single object)

  • Object.entries -> map -> reduce (single object)

  • Object.entries -> reduce (temporary objects)

  • Object.entries -> map -> reduce (temporary objects)

  • new map -> loop over object.entries -> Object.fromEntries

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Object.entries -> map -> Object.fromEntries
    Object.entries -> reduce (single object)
    Object.entries -> map -> reduce (single object)
    Object.entries -> reduce (temporary objects)
    Object.entries -> map -> reduce (temporary objects)
    new map -> loop over object.entries -> Object.fromEntries

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122 on Linux
View result in a separate tab
Test name Executions per second
Object.entries -> map -> Object.fromEntries 4504.6 Ops/sec
Object.entries -> reduce (single object) 22315.7 Ops/sec
Object.entries -> map -> reduce (single object) 23553.2 Ops/sec
Object.entries -> reduce (temporary objects) 13142.0 Ops/sec
Object.entries -> map -> reduce (temporary objects) 12721.8 Ops/sec
new map -> loop over object.entries -> Object.fromEntries 3546.5 Ops/sec


;