Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/121.0.6167.66 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 121
iOS 18.1
Mobile
one month ago
Test name Executions per second
value == null 13764810.0 Ops/sec
value == undefined 6855218.0 Ops/sec
value === null 13788533.0 Ops/sec
value === undefined 6788600.5 Ops/sec
value === null || value === undefined 4511088.0 Ops/sec
_.isNil(value) 7014475.5 Ops/sec
value != null 13023406.0 Ops/sec
value != undefined 5335652.0 Ops/sec
value !== null 12344412.0 Ops/sec
value !== undefined 6819185.5 Ops/sec
value !== null && value !== undefined 3727963.5 Ops/sec
!_.isNil(value) 4058836.5 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)