Run details:
Mozilla/5.0 (Linux; Android 11) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/87.0.4280.141 Mobile DuckDuckGo/5 Safari/537.36
Chrome Mobile 87
Android
Mobile
3 years ago
Test name Executions per second
regex start 237.2 Ops/sec
startsWith 127.2 Ops/sec
regex end 236.3 Ops/sec
endsWith 124.8 Ops/sec
indexOf start 3188.5 Ops/sec
indexOf end 3269.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end