Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Windows
Desktop
2 years ago
Test name Executions per second
Regex 1 9585962.0 Ops/sec
Regex 2 264292.8 Ops/sec
Split 7178952.0 Ops/sec
Substring 33638960.0 Ops/sec
Script Preparation code:
Tests:
  • Regex 1

  • Regex 2

  • Split

  • Substring