Run details:
Mozilla/5.0 (Linux; Android 13; SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36
Chrome Mobile 104
Android
Mobile
one year ago
Test name Executions per second
new RegExp() 3100047.5 Ops/sec
Literal 3103477.0 Ops/sec
new RegExp(Literal) 1364916.6 Ops/sec
Script Preparation code:
Tests:
  • new RegExp()

  • Literal

  • new RegExp(Literal)