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 10298931.0 Ops/sec
substr 9678431.0 Ops/sec
substring 9348629.0 Ops/sec
Script Preparation code:
Tests:
  • slice

  • substr

  • substring