Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Windows
Desktop
one year ago
Test name Executions per second
value == null 22053680.0 Ops/sec
value == undefined 7796348.5 Ops/sec
value === null 21856686.0 Ops/sec
value === undefined 7803201.0 Ops/sec
value === null || value === undefined 5724950.5 Ops/sec
_.isNil(value) 7826787.0 Ops/sec
value != null 21890202.0 Ops/sec
value != undefined 7778252.5 Ops/sec
value !== null 21869092.0 Ops/sec
value !== undefined 7826799.5 Ops/sec
value !== null && value !== undefined 5730337.5 Ops/sec
!_.isNil(value) 7826296.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)