Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome 87
Mac OS X 10.15.7
Desktop
4 years ago
Test name Executions per second
Assign spread 433354.0 Ops/sec
Assign mutate 2526856.0 Ops/sec
Assign Immutable 1794185.1 Ops/sec
Copy spread 8966020.0 Ops/sec
Copy assign 2448191.0 Ops/sec
assign spread inline 1179124.8 Ops/sec
assign inline mutate 3629800.5 Ops/sec
assign inline copy 2076535.0 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