Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Linux
Desktop
18 days ago
Test name Executions per second
value == null 11318887.0 Ops/sec
value == undefined 3838920.5 Ops/sec
value === null 11066304.0 Ops/sec
value === undefined 3835716.0 Ops/sec
value === null || value === undefined 3015833.2 Ops/sec
_.isNil(value) 3701020.5 Ops/sec
value != null 11438122.0 Ops/sec
value != undefined 3807542.2 Ops/sec
value !== null 11119456.0 Ops/sec
value !== undefined 3813649.2 Ops/sec
value !== null && value !== undefined 2950453.0 Ops/sec
!_.isNil(value) 3743407.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)


;