Tests:
  • indexOf()

  • substr()

  • test()

  • === || ===

  • substring()

  • ===

  • test() 2

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    indexOf()
    substr()
    test()
    === || ===
    substring()
    ===
    test() 2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
Firefox 135 on Linux
View result in a separate tab
Test name Executions per second
indexOf() 3278089.2 Ops/sec
substr() 3254465.8 Ops/sec
test() 2844087.0 Ops/sec
=== || === 1624196.2 Ops/sec
substring() 3239415.0 Ops/sec
=== 3296522.2 Ops/sec
test() 2 2750311.2 Ops/sec