Run details:
Mozilla/5.0 (Android 13; Mobile; rv:131.0) Gecko/131.0 Firefox/131.0
Firefox Mobile 131
Android
Mobile
2 months ago
Test name Executions per second
value == null 394961408.0 Ops/sec
value == undefined 393351648.0 Ops/sec
value === null 395240672.0 Ops/sec
value === undefined 392592992.0 Ops/sec
value === null || value === undefined 314505888.0 Ops/sec
_.isNil(value) 392791744.0 Ops/sec
value != null 394299680.0 Ops/sec
value != undefined 393344128.0 Ops/sec
value !== null 394551392.0 Ops/sec
value !== undefined 393158240.0 Ops/sec
value !== null && value !== undefined 314126752.0 Ops/sec
!_.isNil(value) 392253920.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)