Run details:
Mozilla/5.0 (Android 14; Mobile; rv:143.0) Gecko/143.0 Firefox/143.0
Firefox Mobile 143
Android
Mobile
6 months ago
Test name Executions per second
regexp .test() 16782878.0 Ops/sec
string .match() 9977881.0 Ops/sec
indexOf === 0 970002048.0 Ops/sec
string .startsWith() 1055339648.0 Ops/sec
Equality 18032586.0 Ops/sec
Script Preparation code:
Tests:
  • regexp .test()

  • string .match()

  • indexOf === 0

  • string .startsWith()

  • Equality