Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:97.0) Gecko/20100101 Firefox/97.0
Firefox 97
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
const constructed regex 9420262.0 Ops/sec
const literal regex 9416845.0 Ops/sec
inline literal regex 9132099.0 Ops/sec
inline contructed regex 3882487.0 Ops/sec
Script Preparation code:
Tests:
  • const constructed regex

  • const literal regex

  • inline literal regex

  • inline contructed regex