Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0
Chrome 127
Mac OS X 10.15.7
Desktop
3 months ago
Test name Executions per second
Array.from().reduce() reusing object 338409.9 Ops/sec
Array.from(o, mapFn).reduce() reusing object 317173.8 Ops/sec
Entries from Array.from(o, mapFn).reduce() 299599.2 Ops/sec
Script Preparation code:
Tests:
  • Array.from().reduce() reusing object

  • Array.from(o, mapFn).reduce() reusing object

  • Entries from Array.from(o, mapFn).reduce()


;