Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4929.5 Safari/537.36 OPR/87.0.4374.0 (Edition developer)
Opera 87
Linux
Desktop
2 years ago
Test name Executions per second
new RegExp() 1959101.5 Ops/sec
RegExp() factory 1973948.2 Ops/sec
Literal 5669284.5 Ops/sec
Literal premade 3907646.8 Ops/sec
Script Preparation code:
Tests:
  • new RegExp()

  • RegExp() factory

  • Literal

  • Literal premade


;