Run details:
Mozilla/5.0 (X11; CrOS x86_64 14268.67.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.111 Safari/537.36
Chrome 96
Chrome OS 14268.67.0
Desktop
2 years ago
Test name Executions per second
regex start 135.8 Ops/sec
startsWith 177.4 Ops/sec
regex end 122.8 Ops/sec
endsWith 177.4 Ops/sec
indexOf start 1391.9 Ops/sec
indexOf end 1551.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;