Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0 f645f118e1ed5824f57251e898d8c3a2+
Firefox 74
Windows
Desktop
3 years ago
Test name Executions per second
Regex 264.5 Ops/sec
.indexOf 185.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Regex

  • .indexOf


;