Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Safari/537.36 Core/1.70.3880.400 QQBrowser/10.8.4554.400
QQ Browser 10
Windows
Desktop
2 years ago
Test name Executions per second
RegEx.test() 5234106.5 Ops/sec
String.search() 6032527.5 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test()

  • String.search()


;