Script Preparation code:
Tests:
  • new RegExp()

  • Literal

  • Inline literal

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    new RegExp()
    Literal
    Inline literal

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111 on Windows
View result in a separate tab
Test name Executions per second
new RegExp() 14231770.0 Ops/sec
Literal 14631210.0 Ops/sec
Inline literal 13742390.0 Ops/sec