Run details:
Mozilla/5.0 (Linux; Android 7.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Mobile Safari/537.36
Chrome Mobile 99
Android 7.0
Mobile
2 years ago
Test name Executions per second
const constructed regex 556201.6 Ops/sec
const literal regex 552869.2 Ops/sec
inline literal regex 1159575.4 Ops/sec
inline contructed regex 268396.7 Ops/sec
Script Preparation code:
Tests:
  • const constructed regex

  • const literal regex

  • inline literal regex

  • inline contructed regex


;