Run details:
Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.111 Mobile Safari/537.36
Chrome Mobile 76
Android
Mobile
5 years ago
Test name Executions per second
new RegExp() 2309497.0 Ops/sec
Literal 2333138.2 Ops/sec
Script Preparation code:
Tests:
  • new RegExp()

  • Literal