Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.5000.0 Iron Safari/537.36
Chrome 98
Windows 7
Desktop
one year ago
Test name Executions per second
RegEx.test 3195214.8 Ops/sec
String.includes 6041590.5 Ops/sec
String.match 2136097.8 Ops/sec
String Equality 7844748.5 Ops/sec
String.indexOf 7902571.5 Ops/sec
Regex.test no ^ and & 3212215.8 Ops/sec
Regex.test base 3041943.8 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test

  • String.includes

  • String.match

  • String Equality

  • String.indexOf

  • Regex.test no ^ and &

  • Regex.test base


;