Run details:
Mozilla/5.0 (Linux; Android 9; HMA-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36
Chrome Mobile 73
Android
Mobile
5 years ago
Test name Executions per second
Regex 1 2724457.0 Ops/sec
Regex 2 146268.5 Ops/sec
Split 2934690.2 Ops/sec
Substring 2843566.5 Ops/sec
Script Preparation code:
Tests:
  • Regex 1

  • Regex 2

  • Split

  • Substring