Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
value == null 31522372.0 Ops/sec
value == undefined 10964352.0 Ops/sec
value === null 31427194.0 Ops/sec
value === undefined 10997257.0 Ops/sec
value === null || value === undefined 8153493.0 Ops/sec
_.isNil(value) 10560941.0 Ops/sec
value != null 31509016.0 Ops/sec
value != undefined 10910442.0 Ops/sec
value !== null 31589914.0 Ops/sec
value !== undefined 10994114.0 Ops/sec
value !== null && value !== undefined 8101293.5 Ops/sec
!_.isNil(value) 10601903.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)


;