Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Chrome OS 14541.0.0
Desktop
one year ago
Test name Executions per second
RegEx.test 2593749.0 Ops/sec
String.includes 8182279.5 Ops/sec
String.match 1696136.5 Ops/sec
== 8103328.5 Ops/sec
=== known length 8083723.0 Ops/sec
startsWith 6667681.5 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test

  • String.includes

  • String.match

  • ==

  • === known length

  • startsWith


;