Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80
Mac OS X 10.14
Desktop
4 years ago
Test name Executions per second
substring 306855136.0 Ops/sec
substr 326534752.0 Ops/sec
replace 17847718.0 Ops/sec
slice 128859960.0 Ops/sec
Script Preparation code:
Tests:
  • substring

  • substr

  • replace

  • slice