Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 YaBrowser/24.1.0.0 Safari/537.36
Yandex Browser 24
Windows
Desktop
10 months ago
Test name Executions per second
regex start 323.1 Ops/sec
startsWith 642.1 Ops/sec
regex end 300.6 Ops/sec
endsWith 663.0 Ops/sec
indexOf start 7449.0 Ops/sec
indexOf end 7598.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end