Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.36
Chrome Mobile 119
Android
Mobile
one year ago
Test name Executions per second
value == null 12978569.0 Ops/sec
value == undefined 4395873.0 Ops/sec
value === null 12960958.0 Ops/sec
value === undefined 4438017.5 Ops/sec
value === null || value === undefined 3313889.0 Ops/sec
_.isNil(value) 4200408.0 Ops/sec
value != null 13064032.0 Ops/sec
value != undefined 4450145.0 Ops/sec
value !== null 13040897.0 Ops/sec
value !== undefined 4456643.5 Ops/sec
value !== null && value !== undefined 3322010.0 Ops/sec
!_.isNil(value) 4208743.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)