Object.entries VS Object.keys VS Object.values

2 months ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0
Test name Executions per second
Object.entries 49984.9 Ops/sec
Object.keys 33700.0 Ops/sec
Object.values 29811.2 Ops/sec
Object.entries2 51384.6 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.values

  • Object.entries2

Open this result on MeasureThat.net