Script Preparation code:
Tests:
  • new RegExp()

  • RegExp() factory

  • Literal

  • Literal premade

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    new RegExp()
    RegExp() factory
    Literal
    Literal premade

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Chrome 76 on Mac OS X 10.13.3
View result in a separate tab
Test name Executions per second
new RegExp() 2662439.0 Ops/sec
RegExp() factory 2757331.0 Ops/sec
Literal 6991243.0 Ops/sec
Literal premade 4890083.0 Ops/sec