Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0
Firefox 93
Windows
Desktop
3 years ago
Test name Executions per second
For ... in length test 59100140.0 Ops/sec
Object.keys length test 11038940.0 Ops/sec
Object.values length test 10046502.0 Ops/sec
Object.entries length test 2765669.0 Ops/sec
For In Reduce test 15825666.0 Ops/sec
Object.keys Reduce test 4924466.5 Ops/sec
Object.values Reduce test 5559043.5 Ops/sec
Object.entries reduce test 2105155.2 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