Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Linux
Desktop
one year ago
Test name Executions per second
regex start 380.8 Ops/sec
startsWith 420.5 Ops/sec
regex end 408.3 Ops/sec
endsWith 527.3 Ops/sec
indexOf start 10052.4 Ops/sec
indexOf end 9996.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end