Script Preparation code:
AخA
 
var isValid = true
var isLoading = false 
Tests:
  • isValid

    x
     
    console.log(2 + 4 + 5)
    isLoading = true
    if (isValid) {
        try {
            console.log("try")
        } catch (error) {
            console.log(error)
        }
    }
    isLoading = false
  • !isValid

     
    console.log(2 + 4 + 5)
    isLoading = true
    if (!isValid) return
    try {
        console.log("try")
    } catch (error) {
        console.log(error)
    }
    isLoading = false
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    isValid
    !isValid

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36
Chrome 96 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
isValid 49993.5 Ops/sec
!isValid 49039.8 Ops/sec