Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
Safari 13
Mac OS X 10.13.6
Desktop
3 years ago
Test name Executions per second
subarray direct 4241118.0 Ops/sec
slice direct 1409701.4 Ops/sec
subarray copy 1802912.4 Ops/sec
slice copy 929341.8 Ops/sec
subarray set 1853325.0 Ops/sec
slice set 940389.4 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set