Run details:
Mozilla/5.0 (Linux; Android 9; Mi 9T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36
Chrome Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
RegEx.test 2355723.0 Ops/sec
String.includes 5707592.0 Ops/sec
String.match 1269560.8 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test

  • String.includes

  • String.match