Script Preparation code:
Tests:
  • for-in

  • Object.keys.forEach

  • Object.keys with for of loop

  • Object.entries

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for-in
    Object.keys.forEach
    Object.keys with for of loop
    Object.entries

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0
Firefox 79 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
for-in 0.4 Ops/sec
Object.keys.forEach 0.4 Ops/sec
Object.keys with for of loop 0.4 Ops/sec
Object.entries 0.4 Ops/sec

Recommended literature: