Script Preparation code:
Tests:
  • POJO - for...in

  • POJO - for...of Object.entries

  • POJO - reduce Object.entries

  • Map - forEach

  • Map - for...of entries

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    POJO - for...in
    POJO - for...of Object.entries
    POJO - reduce Object.entries
    Map - forEach
    Map - for...of entries

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120 on Windows
View result in a separate tab
Test name Executions per second
POJO - for...in 18663.9 Ops/sec
POJO - for...of Object.entries 34832.3 Ops/sec
POJO - reduce Object.entries 33205.7 Ops/sec
Map - forEach 41408.1 Ops/sec
Map - for...of entries 50272.1 Ops/sec


;