Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Windows
Desktop
one year ago
Test name Executions per second
value == null 777752000.0 Ops/sec
value == undefined 769736000.0 Ops/sec
value === null 711358656.0 Ops/sec
value === undefined 672205632.0 Ops/sec
value === null || value === undefined 484910112.0 Ops/sec
_.isNil(value) 734219392.0 Ops/sec
value != null 634162112.0 Ops/sec
value != undefined 711474496.0 Ops/sec
value !== null 724629440.0 Ops/sec
value !== undefined 704603776.0 Ops/sec
value !== null && value !== undefined 486677632.0 Ops/sec
!_.isNil(value) 659017920.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)