Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
subarray direct 14027111.0 Ops/sec
slice direct 5211967.5 Ops/sec
subarray copy 6572988.0 Ops/sec
slice copy 3672307.8 Ops/sec
subarray set 6755976.0 Ops/sec
slice set 3656335.0 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set