HTML Preparation code:
Script Preparation code:
Tests:
  • value == null

  • value == undefined

  • value === null

  • value === undefined

  • value === null || value === undefined

  • value != null

  • value != undefined

  • value !== null

  • value !== undefined

  • value !== null && value !== undefined

  • let res = value != null ? 1 : 0

  • let res = value ? 1 : 0

  • let res = value == null ? 0 : 1

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    value == null
    value == undefined
    value === null
    value === undefined
    value === null || value === undefined
    value != null
    value != undefined
    value !== null
    value !== undefined
    value !== null && value !== undefined
    let res = value != null ? 1 : 0
    let res = value ? 1 : 0
    let res = value == null ? 0 : 1

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

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