Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.86 Safari/537.36
Chrome 89
Windows
Desktop
3 years ago
Test name Executions per second
Check for the real variable. 7585689.5 Ops/sec
Check for the opposite. 7501893.0 Ops/sec
Check for another variable. 2828689.2 Ops/sec
Check for another variable without comparisson. 7158975.5 Ops/sec
Check for another variable denying it.. 7628250.0 Ops/sec
Script Preparation code:
Tests:
  • Check for the real variable.

  • Check for the opposite.

  • Check for another variable.

  • Check for another variable without comparisson.

  • Check for another variable denying it..