Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
Chrome 73
Mac OS X 10.14.0
Desktop
5 years ago
Test name Executions per second
immutable with concat 467.1 Ops/sec
mutation with splice + spread 4085.0 Ops/sec
mutation with splice into preallocated array 4000.0 Ops/sec
mutation with loop-assign 220526.8 Ops/sec
Tests:
  • immutable with concat

  • mutation with splice + spread

  • mutation with splice into preallocated array

  • mutation with loop-assign