Run details:
Mozilla/5.0 (Linux; Android 11; SM-N975U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 EdgA/46.02.4.5147
Chrome Mobile 77
Android
Mobile
3 years ago
Test name Executions per second
Object.fromEntries 75.2 Ops/sec
Reduce (reuse object) 676.4 Ops/sec
Reduce (creating temporary objects) 10.8 Ops/sec
Script Preparation code:
Tests:
  • Object.fromEntries

  • Reduce (reuse object)

  • Reduce (creating temporary objects)