Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
Chrome 92
Windows 7
Desktop
3 years ago
Test name Executions per second
If Statement - True 2559884.5 Ops/sec
If Statement - False 10102123.0 Ops/sec
Calculate - Positive 3408467.2 Ops/sec
Calculate - Zero 3432736.8 Ops/sec
Script Preparation code:
Tests:
  • If Statement - True

  • If Statement - False

  • Calculate - Positive

  • Calculate - Zero