Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Chrome 104
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
keys 2967573.0 Ops/sec
keys with variable 4086504.0 Ops/sec
entries 6178638.0 Ops/sec
values 6647100.0 Ops/sec
entries with variable 6189576.0 Ops/sec
for...of 7079943.0 Ops/sec
Script Preparation code:
Tests:
  • keys

  • keys with variable

  • entries

  • values

  • entries with variable

  • for...of