Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Linux
Desktop
one year ago
Test name Executions per second
value == null 22062140.0 Ops/sec
value == undefined 8278114.5 Ops/sec
value === null 22064376.0 Ops/sec
value === undefined 8314584.0 Ops/sec
value === null || value === undefined 6151018.0 Ops/sec
_.isNil(value) 7897759.0 Ops/sec
value != null 22357500.0 Ops/sec
value != undefined 8264439.5 Ops/sec
value !== null 22082210.0 Ops/sec
value !== undefined 8310581.5 Ops/sec
value !== null && value !== undefined 6042180.0 Ops/sec
!_.isNil(value) 7763202.5 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)


;