Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
for of Object.keys 3667075.8 Ops/sec
Object.fromEntries with keys 2774856.0 Ops/sec
Object.fromEntries with entries 2709067.2 Ops/sec
Object.fromEntries with entries - destruction entry 2716065.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • for of Object.keys

  • Object.fromEntries with keys

  • Object.fromEntries with entries

  • Object.fromEntries with entries - destruction entry