Tests:
  • !! (number)

  • Boolean() (number)

  • ternary (number)

  • !! (string)

  • Boolean() (string)

  • ternary (string)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    !! (number)
    Boolean() (number)
    ternary (number)
    !! (string)
    Boolean() (string)
    ternary (string)

    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: 28 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124 on Windows
View result in a separate tab
Test name Executions per second
!! (number) 986763000.0 Ops/sec
Boolean() (number) 984892500.0 Ops/sec
ternary (number) 989451900.0 Ops/sec
!! (string) 989081200.0 Ops/sec
Boolean() (string) 982467200.0 Ops/sec
ternary (string) 984012700.0 Ops/sec