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 2549405.0 Ops/sec
Object.keys with a small json 1292947.2 Ops/sec
Object.values with a small json 883279.1 Ops/sec
for with a big json 3061.5 Ops/sec
Object.keys with a big json 619.5 Ops/sec
Object.values with a big json 491.5 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


;