Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Mac OS X 10.15.7
Desktop
10 months ago
Test name Executions per second
reduce with new object 10.2 Ops/sec
fromEntries 2744.8 Ops/sec
reduce without new object 4109.1 Ops/sec
forEach 4166.8 Ops/sec
for 2730.1 Ops/sec
Script Preparation code:
Tests:
  • reduce with new object

  • fromEntries

  • reduce without new object

  • forEach

  • for