For in vs Object.*.forEach vs Object.values 2

3 months ago
User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0
Test name Executions per second
For In 2418.2 Ops/sec
Object values 12333.5 Ops/sec
Object keys for of 1434.5 Ops/sec
Script Preparation code:
Tests:
  • For In

  • Object values

  • Object keys for of

Open this result on MeasureThat.net