Script Preparation code:
Tests:
  • using conditional

  • using int cast

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    using conditional
    using int cast

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 years ago)
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 on Mac OS X 10.10.5
View result in a separate tab
Test name Executions per second
using conditional 4840496.0 Ops/sec
using int cast 4872349.5 Ops/sec