Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Windows
Desktop
2 years ago
Test name Executions per second
for with a small json 4293085.0 Ops/sec
Object.keys with a small json 1263206.0 Ops/sec
Object.values with a small json 883448.3 Ops/sec
for with a big json 5521.8 Ops/sec
Object.keys with a big json 615.7 Ops/sec
Object.values with a big json 484.6 Ops/sec
Script Preparation code:
Tests:
  • for with a small json

  • Object.keys with a small json

  • Object.values with a small json

  • for with a big json

  • Object.keys with a big json

  • Object.values with a big json