Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Mac OS X 10.13
Desktop
one year ago
Test name Executions per second
value == null 559840896.0 Ops/sec
value == undefined 546174912.0 Ops/sec
value === null 558930304.0 Ops/sec
value === undefined 559003840.0 Ops/sec
value === null || value === undefined 457797888.0 Ops/sec
_.isNil(value) 548008512.0 Ops/sec
value != null 550120384.0 Ops/sec
value != undefined 554789312.0 Ops/sec
value !== null 553585408.0 Ops/sec
value !== undefined 556101056.0 Ops/sec
value !== null && value !== undefined 463581536.0 Ops/sec
!_.isNil(value) 555172544.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)


;