Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/68.0.3440.75 Chrome/68.0.3440.75 Safari/537.36
Chromium 68
Ubuntu
Desktop
6 years ago
Test name Executions per second
subarray direct 6236716.0 Ops/sec
slice direct 5872494.0 Ops/sec
subarray copy 2207310.2 Ops/sec
slice copy 2174311.5 Ops/sec
subarray set 2309452.8 Ops/sec
slice set 2307211.0 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set