Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Windows
Desktop
5 years ago
Test name Executions per second
spread (objects) 779664.2 Ops/sec
object assign (objects) 209867.6 Ops/sec
Immutable fromJS (objects) 20592.0 Ops/sec
spread (arrays) 252733.1 Ops/sec
object assign (arrays) 40948.1 Ops/sec
Immutable merge (arrays) 727183.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • spread (objects)

  • object assign (objects)

  • Immutable fromJS (objects)

  • spread (arrays)

  • object assign (arrays)

  • Immutable merge (arrays)