Run details:
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3650.1 Iron Safari/537.36
Chrome 70
Windows 8.1
Desktop
3 years ago
Test name Executions per second
slice 9699891.0 Ops/sec
substr 9191194.0 Ops/sec
substring 9637317.0 Ops/sec
Script Preparation code:
Tests:
  • slice

  • substr

  • substring