Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/112.0.5615.70 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 112
iOS 16.1
Mobile
one year ago
Test name Executions per second
Object.fromEntries 307.4 Ops/sec
Reduce (reuse object) 514.3 Ops/sec
Reduce (creating temporary objects) 0.2 Ops/sec
Script Preparation code:
Tests:
  • Object.fromEntries

  • Reduce (reuse object)

  • Reduce (creating temporary objects)