Run details:
Mozilla/5.0 (iPad; CPU OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.0 Mobile/14G60 Safari/602.1
Mobile Safari 10
iOS 10.3.3
iPad
2025 years ago
Test name Executions per second
If Statement - True 583910.4 Ops/sec
If Statement - False 2538174.2 Ops/sec
Calculate - Positive 777557.2 Ops/sec
Calculate - Zero 743509.8 Ops/sec
Script Preparation code:
Tests:
  • If Statement - True

  • If Statement - False

  • Calculate - Positive

  • Calculate - Zero