Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.95 Safari/537.36
Chrome 90
Windows 7
Desktop
3 years ago
Test name Executions per second
Test Spread operator 315396.4 Ops/sec
Test Object.create 122395.5 Ops/sec
Test Object.assign 287449.8 Ops/sec
Test New Object 150869.1 Ops/sec
Script Preparation code:
Tests:
  • Test Spread operator

  • Test Object.create

  • Test Object.assign

  • Test New Object