Run details:
Mozilla/5.0 (iPad; CPU OS 12_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/78.0.3904.84 Mobile/15E148 Safari/605.1
Chrome Mobile iOS 78
iOS 12.4
Tablet
5 years ago
Test name Executions per second
new RegExp() 2019277.6 Ops/sec
Literal 2106564.8 Ops/sec
Script Preparation code:
Tests:
  • new RegExp()

  • Literal