Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0
Firefox 114
Linux
Desktop
one year ago
Test name Executions per second
RegEx.test 28612470.0 Ops/sec
String.includes 48052412.0 Ops/sec
String.match 12232949.0 Ops/sec
== 186998560.0 Ops/sec
=== known length 196597584.0 Ops/sec
startsWith 1058203072.0 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test

  • String.includes

  • String.match

  • ==

  • === known length

  • startsWith


;