Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0
Firefox 116
Ubuntu
Desktop
one year ago
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
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