Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
one year ago
Test name Executions per second
Object.fromEntries 79.1 Ops/sec
Reduce (object assign) 59.2 Ops/sec
Reduce (creating temporary objects) 14.2 Ops/sec
For in 669.6 Ops/sec
Object.fromEntries with Generator 252.3 Ops/sec
Script Preparation code:
Tests:
  • Object.fromEntries

  • Reduce (object assign)

  • Reduce (creating temporary objects)

  • For in

  • Object.fromEntries with Generator