Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Mac OS X 10.14
Desktop
3 years ago
Test name Executions per second
regex start 464.1 Ops/sec
startsWith 418.1 Ops/sec
regex end 455.7 Ops/sec
endsWith 422.9 Ops/sec
indexOf start 316.1 Ops/sec
indexOf end 315.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;