Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Mobile/15E148 Safari/604.1
Mobile Safari 14
iOS 14.2.1
Mobile
4 years ago
Test name Executions per second
Assign spread 738612.6 Ops/sec
Assign mutate 1813285.8 Ops/sec
Assign Immutable 1324139.2 Ops/sec
Copy spread 880388.0 Ops/sec
Copy assign 1879174.1 Ops/sec
assign spread inline 847121.2 Ops/sec
assign inline mutate 2586076.2 Ops/sec
assign inline copy 1561835.1 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