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 2649289.8 Ops/sec
String.includes 8163681.5 Ops/sec
String.match 1766047.8 Ops/sec
== 8117063.5 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test

  • String.includes

  • String.match

  • ==

  • === known length

  • startsWith