Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Windows
Desktop
one month ago
Test name Executions per second
RegEx.test 50465844.0 Ops/sec
String.includes 188173616.0 Ops/sec
String.match 9544587.0 Ops/sec
== 182596272.0 Ops/sec
=== known length 202069824.0 Ops/sec
startsWith 103615336.0 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test

  • String.includes

  • String.match

  • ==

  • === known length

  • startsWith