Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Linux
Desktop
one month ago
Test name Executions per second
value == null 12202979.0 Ops/sec
value == undefined 6526087.0 Ops/sec
value === null 14899931.0 Ops/sec
value === undefined 7715985.0 Ops/sec
value === null || value === undefined 4469180.0 Ops/sec
_.isNil(value) 4408361.0 Ops/sec
value != null 16315243.0 Ops/sec
value != undefined 5079477.5 Ops/sec
value !== null 15236425.0 Ops/sec
value !== undefined 8354287.5 Ops/sec
value !== null && value !== undefined 5394280.0 Ops/sec
!_.isNil(value) 7416669.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)