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

  • value == undefined

  • value === null

  • value === undefined

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

  • _.isNil(value)

  • value != null

  • value != undefined

  • value !== null

  • value !== undefined

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

  • !_.isNil(value)

  • typeof value == undefined

  • typeof value === undefined

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
    _.isNil(value)
    value != null
    value != undefined
    value !== null
    value !== undefined
    value !== null && value !== undefined
    !_.isNil(value)
    typeof value == undefined
    typeof value === undefined

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 20 days 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
value == null 56480736.0 Ops/sec
value == undefined 48415744.0 Ops/sec
value === null 56071436.0 Ops/sec
value === undefined 56608396.0 Ops/sec
value === null || value === undefined 52463556.0 Ops/sec
_.isNil(value) 30789712.0 Ops/sec
value != null 64812236.0 Ops/sec
value != undefined 44734152.0 Ops/sec
value !== null 56004448.0 Ops/sec
value !== undefined 49211500.0 Ops/sec
value !== null && value !== undefined 42629112.0 Ops/sec
!_.isNil(value) 32653414.0 Ops/sec
typeof value == undefined 62180620.0 Ops/sec
typeof value === undefined 55548980.0 Ops/sec