Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0
Firefox 72
Linux
Desktop
4 years ago
Test name Executions per second
forEach 1585043.9 Ops/sec
fromEntries and map 1139752.5 Ops/sec
Object.assign and map 425009.8 Ops/sec
reduce 456274.1 Ops/sec
for 1958269.1 Ops/sec
Script Preparation code:
Tests:
  • forEach #1

  • fromEntries and map #1

  • Object.assign and map #1

  • reduce #1

  • for

  • forEach #2

  • fromEntries and map #2

  • Object.assign and map #2

  • reduce #2


;