Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Goanna/6.5 Firefox/102.0 PaleMoon/32.5.2
Pale Moon (Firefox Variant) 32
Windows
Desktop
11 months ago
Test name Executions per second
RegEx.test() 19125412.0 Ops/sec
String.search() 11025104.0 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test()

  • String.search()