Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Linux
Desktop
one year ago
Test name Executions per second
regex directly in function 21079.9 Ops/sec
regex in global scope 21680.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex directly in function

  • regex in global scope