Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Chrome 95
Linux
Desktop
3 years ago
Test name Executions per second
Array clone with spread operator 15331516.0 Ops/sec
Array clone with slice 15480765.0 Ops/sec
Array addition with spread operator 5277688.5 Ops/sec
Array addition with slice and push 5432718.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


;