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
11 months ago
Test name Executions per second
Object.fromEntries 87.8 Ops/sec
Reduce (object assign) 61.2 Ops/sec
Reduce (creating temporary objects) 14.9 Ops/sec
For in 652.3 Ops/sec
Object.fromEntries with Generator 258.5 Ops/sec
Script Preparation code:
Tests:
  • Object.fromEntries

  • Reduce (object assign)

  • Reduce (creating temporary objects)

  • For in

  • Object.fromEntries with Generator


;