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 1984022.5 Ops/sec
String.includes 7989341.5 Ops/sec
String.match 1709255.2 Ops/sec
== 8037095.0 Ops/sec
=== known length 8017722.5 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test

  • String.includes

  • String.match

  • ==

  • === known length

  • startsWith


;