Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15
Safari 13
Mac OS X 10.14.6
Desktop
4 years ago
Test name Executions per second
null check with next typeof check 6533637.0 Ops/sec
boolean check with next typeof check 6526039.0 Ops/sec
boolean check with next boolean check 6400166.5 Ops/sec
null or undefined with next typeof check 907124.2 Ops/sec
null or undefined with boolean next check 917572.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • null check with next typeof check

  • boolean check with next typeof check

  • boolean check with next boolean check

  • null or undefined with next typeof check

  • null or undefined with boolean next check