Run details:
Mozilla/5.0 (Android 10; Mobile; rv:93.0) Gecko/93.0 Firefox/93.0
Firefox Mobile 93
Android
Mobile
3 years ago
Test name Executions per second
For ... in length test 28681746.0 Ops/sec
Object.keys length test 9316834.0 Ops/sec
Object.values length test 7624093.0 Ops/sec
Object.entries length test 3002667.0 Ops/sec
For In Reduce test 10965818.0 Ops/sec
Object.keys Reduce test 4557546.5 Ops/sec
Object.values Reduce test 4518625.5 Ops/sec
Object.entries reduce test 2249975.8 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