Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
RegEx.test 10740744.0 Ops/sec
String.includes 27182914.0 Ops/sec
String.match 6843594.5 Ops/sec
String Equality 27104208.0 Ops/sec
String.indexOf 27140086.0 Ops/sec
Regex.test no ^ and & 10755328.0 Ops/sec
Regex.test base 10577814.0 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test

  • String.includes

  • String.match

  • String Equality

  • String.indexOf

  • Regex.test no ^ and &

  • Regex.test base


;