Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Android
Desktop
2 months ago
Test name Executions per second
subarray direct 4567237.0 Ops/sec
slice direct 4073803.2 Ops/sec
subarray copy 1630592.0 Ops/sec
slice copy 1568697.9 Ops/sec
subarray set 1544324.0 Ops/sec
slice set 1517226.6 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set