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

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 8 months 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 33667020.0 Ops/sec
Object.keys length test 22010310.0 Ops/sec
Object.values length test 15438590.0 Ops/sec
Object.entries length test 6265568.0 Ops/sec
For In Reduce test 17620390.0 Ops/sec
Object.keys Reduce test 9600209.0 Ops/sec
Object.values Reduce test 9906636.0 Ops/sec
Object.entries reduce test 4823546.0 Ops/sec