Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Object.fromEntries 405.0 Ops/sec
Reduce (reuse object) 1639.9 Ops/sec
Reduce (creating temporary objects) 0.3 Ops/sec
Map 845.1 Ops/sec
for of 3560.3 Ops/sec
for 3936.8 Ops/sec
Script Preparation code:
Tests:
  • Object.fromEntries

  • Reduce (reuse object)

  • Reduce (creating temporary objects)

  • Map

  • for of

  • for