Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Ubuntu
Desktop
10 months ago
Test name Executions per second
Array clone with spread operator 289754400.0 Ops/sec
Array clone with slice 93216128.0 Ops/sec
Array addition with spread operator 197095888.0 Ops/sec
Array addition with slice and push 73293200.0 Ops/sec
Script Preparation code:
Tests:
  • Array clone with spread operator

  • Array clone with slice

  • Array addition with spread operator

  • Array addition with slice and push