Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16) AppleWebKit/611.3.10 (KHTML, like Gecko) Version/14.1.2 Safari/611.3.10 Maxthon/5.1.134
Maxthon 5
Mac OS X 10.16
Desktop
3 years ago
Test name Executions per second
slice 10095584.0 Ops/sec
substr 9365640.0 Ops/sec
substring 9549601.0 Ops/sec
Script Preparation code:
Tests:
  • slice

  • substr

  • substring