Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Chrome 115
Windows
Desktop
one year ago
Test name Executions per second
value == null 15810013.0 Ops/sec
value == undefined 5961103.0 Ops/sec
value === null 15804723.0 Ops/sec
value === undefined 6014590.0 Ops/sec
value === null || value === undefined 4410979.5 Ops/sec
_.isNil(value) 5757206.5 Ops/sec
value != null 15957666.0 Ops/sec
value != undefined 5986346.0 Ops/sec
value !== null 15831772.0 Ops/sec
value !== undefined 6055088.5 Ops/sec
value !== null && value !== undefined 4492805.0 Ops/sec
!_.isNil(value) 5977462.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)


;