Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.1077 YaBrowser/23.9.1.1077 Yowser/2.5 Safari/537.36
Yandex Browser 23
Linux
Desktop
one year ago
Test name Executions per second
regex start 594.0 Ops/sec
startsWith 1032.5 Ops/sec
regex end 561.3 Ops/sec
endsWith 1032.4 Ops/sec
indexOf start 11834.1 Ops/sec
indexOf end 11852.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end