Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Windows
Desktop
one year ago
Test name Executions per second
substring without end point 12576190.0 Ops/sec
slice without end point 12189013.0 Ops/sec
substring with end point 9187487.0 Ops/sec
slice with end point 8977258.0 Ops/sec
Script Preparation code:
Tests:
  • substring without end point

  • slice without end point

  • substring with end point

  • slice with end point


;