Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome 87
Mac OS X 10.15.5
Desktop
4 years ago
Test name Executions per second
Assign spread 565226.1 Ops/sec
Assign mutate 2989384.2 Ops/sec
Assign Immutable 2045400.8 Ops/sec
Copy spread 11419222.0 Ops/sec
Copy assign 3029054.8 Ops/sec
assign spread inline 1347286.8 Ops/sec
assign inline mutate 4387879.0 Ops/sec
assign inline copy 2640593.2 Ops/sec
Script Preparation code:
Tests:
  • Assign spread

  • Assign mutate

  • Assign Immutable

  • Copy spread

  • Copy assign

  • assign spread inline

  • assign inline mutate

  • assign inline copy