Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.111 YaBrowser/21.2.1.94 (beta) Yowser/2.5 Safari/537.36
Yandex Browser 21
Linux
Desktop
3 years ago
Test name Executions per second
regex start 523.7 Ops/sec
startsWith 660.2 Ops/sec
regex end 451.4 Ops/sec
endsWith 664.0 Ops/sec
indexOf start 11717.1 Ops/sec
indexOf end 11738.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end