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

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Windows
View result in a separate tab
Test name Executions per second
!! (number) 106700400.0 Ops/sec
Boolean() (number) 9652053.0 Ops/sec
ternary (number) 115526056.0 Ops/sec
!! (string) 111984648.0 Ops/sec
Boolean() (string) 9413202.0 Ops/sec
ternary (string) 110853144.0 Ops/sec