Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Windows
Desktop
one year ago
Test name Executions per second
substring without end point 6366939.0 Ops/sec
slice without end point 6653577.5 Ops/sec
substring with end point 4099212.2 Ops/sec
slice with end point 4675787.5 Ops/sec
Script Preparation code:
Tests:
  • substring without end point

  • slice without end point

  • substring with end point

  • slice with end point