Run details:
Mozilla/5.0 (Linux; Android 10; Mi MIX 2S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36
Chrome Mobile 111
Android
Mobile
one year ago
Test name Executions per second
regex start 260.2 Ops/sec
startsWith 236.7 Ops/sec
regex end 250.5 Ops/sec
endsWith 237.3 Ops/sec
indexOf start 3672.8 Ops/sec
indexOf end 3380.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end