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 4293084.5 Ops/sec
Object.keys with a small json 1263206.4 Ops/sec
Object.values with a small json 883448.2 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


;