Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
Chrome 99
Windows
Desktop
2 years ago
Test name Executions per second
const constructed regex 2344356.5 Ops/sec
const literal regex 2244004.5 Ops/sec
inline literal regex 6525079.5 Ops/sec
inline contructed regex 1102368.4 Ops/sec
Script Preparation code:
Tests:
  • const constructed regex

  • const literal regex

  • inline literal regex

  • inline contructed regex


;