Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36
Chrome 58
Mac OS X 10.12.4
Other
7 years ago
Test name Executions per second
Compare if, x predefined as 0 2629371.0 Ops/sec
Compare if else 2561936.8 Ops/sec
Compare math abs 1365086.4 Ops/sec
Compare math abs 0p5 1309706.5 Ops/sec
Compare math one abs 1779774.5 Ops/sec
Tests:
  • Compare if, x predefined as 0

  • Compare if else

  • Compare math abs

  • Compare math abs 0p5

  • Compare math one abs


;