Run details:
Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0
Firefox 52
Windows XP
Desktop
2 years ago
Test name Executions per second
slice 12249951.0 Ops/sec
substring 12126876.0 Ops/sec
substr 296130528.0 Ops/sec
Script Preparation code:
Tests:
  • slice

  • substring

  • substr