Run details:
Mozilla/5.0 (Linux; Android 9; ASUS_Z01KD) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 EdgA/114.0.1823.41
Chrome Mobile 114
Android
Mobile
one year ago
Test name Executions per second
Object.fromEntries 15.6 Ops/sec
Reduce (reuse object) 157.6 Ops/sec
Reduce (creating temporary objects) 5.4 Ops/sec
Script Preparation code:
Tests:
  • Object.fromEntries

  • Reduce (reuse object)

  • Reduce (creating temporary objects)