Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0
Firefox 53
Windows 7
Other
7 years ago
Test name Executions per second
Compare if, x predefined as 0 41572840.0 Ops/sec
Compare if else 41458088.0 Ops/sec
Compare math abs 43717556.0 Ops/sec
Compare math abs 0p5 43286112.0 Ops/sec
Tests:
  • Compare if, x predefined as 0

  • Compare if else

  • Compare math abs

  • Compare math abs 0p5