Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Linux
Desktop
one year ago
Test name Executions per second
value == null 35221844.0 Ops/sec
value == undefined 12555272.0 Ops/sec
value === null 35263304.0 Ops/sec
value === undefined 12686953.0 Ops/sec
value === null || value === undefined 9387256.0 Ops/sec
_.isNil(value) 11899438.0 Ops/sec
value != null 35325028.0 Ops/sec
value != undefined 12602441.0 Ops/sec
value !== null 35479496.0 Ops/sec
value !== undefined 12777601.0 Ops/sec
value !== null && value !== undefined 9489029.0 Ops/sec
!_.isNil(value) 11939880.0 Ops/sec
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)


;