Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 OPR/39.0.2256.71
Opera 39
Mac OS X 10.10.5
Other
8 years ago
Test name Executions per second
using conditional 4840496.0 Ops/sec
using int cast 4872349.5 Ops/sec
Script Preparation code:
Tests:
  • using conditional

  • using int cast