Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Nexus 6P Build/OPM3.171019.013) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.123 Mobile Safari/537.36
Chrome Mobile 64
Android 8.1.0
Nexus 6P
2025 years ago
Test name Executions per second
Just instantiate new array 1806548.9 Ops/sec
Set length to zero 1152661.2 Ops/sec
Splice 756263.4 Ops/sec
Slice 938105.2 Ops/sec
splice 0 1084245.1 Ops/sec
Script Preparation code:
Tests:
  • Just instantiate new array

  • Set length to zero

  • Splice

  • Slice

  • splice 0