Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/77.0.3865.103 Mobile/15E148 Safari/605.1
Chrome Mobile iOS 77
iOS 13.1
Mobile
5 years ago
Test name Executions per second
new RegExp() 5969547.0 Ops/sec
Literal 5919013.0 Ops/sec
Script Preparation code:
Tests:
  • new RegExp()

  • Literal