Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
Chrome 86
Mac OS X 11.0.0
Desktop
4 years ago
Test name Executions per second
substring 16116212.0 Ops/sec
substr 16194761.0 Ops/sec
replace 7329567.0 Ops/sec
slice 16045080.0 Ops/sec
Script Preparation code:
Tests:
  • substring

  • substr

  • replace

  • slice