Tests:
  • Boolean(0)

  • !!true

  • Boolean(true)

  • !!{a: 1, b: 2}

  • Boolean({a: 1, b: 2})

  • !!{}

  • Boolean({})

  • !![1, 2, 3]

  • Boolean([1, 2, 3])

  • Boolean([])

  • Boolean(false)

  • !!`string`

  • !!''

  • Boolean('')

  • !!NaN

  • Boolean(NaN)

  • !!undefined

  • Boolean(undefined)

  • !!null

  • Boolean(null)

  • !!0

  • Boolean(`string`)

  • !!false

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Boolean(0)
    !!true
    Boolean(true)
    !!{a: 1, b: 2}
    Boolean({a: 1, b: 2})
    !!{}
    Boolean({})
    !![1, 2, 3]
    Boolean([1, 2, 3])
    Boolean([])
    Boolean(false)
    !!`string`
    !!''
    Boolean('')
    !!NaN
    Boolean(NaN)
    !!undefined
    Boolean(undefined)
    !!null
    Boolean(null)
    !!0
    Boolean(`string`)
    !!false

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!