Script Preparation code:
Tests:
  • For ... in length test

  • Object.keys length test

  • Object.values length test

  • Object.entries length test

  • For In Reduce test

  • Object.keys Reduce test

  • Object.values Reduce test

  • Object.entries reduce test

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    For ... in length test
    Object.keys length test
    Object.values length test
    Object.entries length test
    For In Reduce test
    Object.keys Reduce test
    Object.values Reduce test
    Object.entries reduce test

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0
Firefox 116 on Ubuntu
View result in a separate tab
Test name Executions per second
For ... in length test 33667016.0 Ops/sec
Object.keys length test 22010310.0 Ops/sec
Object.values length test 15438587.0 Ops/sec
Object.entries length test 6265567.5 Ops/sec
For In Reduce test 17620388.0 Ops/sec
Object.keys Reduce test 9600209.0 Ops/sec
Object.values Reduce test 9906636.0 Ops/sec
Object.entries reduce test 4823545.5 Ops/sec