Run details:
Mozilla/5.0 (Linux; Android 9; VS996) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 OPR/55.2.2719.50740
Opera Mobile 55
Android
Mobile
4 years ago
Test name Executions per second
new RegExp() 2336396.8 Ops/sec
Literal 2361339.5 Ops/sec
Script Preparation code:
Tests:
  • new RegExp()

  • Literal