Run details:
Mozilla/5.0 (Android 13; Mobile; rv:131.0) Gecko/131.0 Firefox/131.0
Firefox Mobile 131
Android
Mobile
18 days ago
Test name Executions per second
value == null 395227520.0 Ops/sec
value == undefined 393842656.0 Ops/sec
value === null 393691552.0 Ops/sec
value === undefined 392634240.0 Ops/sec
value === null || value === undefined 313929184.0 Ops/sec
_.isNil(value) 392048928.0 Ops/sec
value != null 394992800.0 Ops/sec
value != undefined 393112928.0 Ops/sec
value !== null 394662336.0 Ops/sec
value !== undefined 393690720.0 Ops/sec
value !== null && value !== undefined 314363008.0 Ops/sec
!_.isNil(value) 393182240.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)


;