Run details:
Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.96 Mobile DuckDuckGo/5 Safari/537.36
Chrome Mobile 78
Android
Mobile
4 years ago
Test name Executions per second
new RegExp() 2337050.5 Ops/sec
Literal 2246293.5 Ops/sec
Script Preparation code:
Tests:
  • new RegExp()

  • Literal