Script Preparation code:
AخA
 
var array = [function(e) {return e ** 2}, function(e) {return e ^ e}];
function a(a, b, c) {
  if(a < b) {
    return array[0](c);
  } else return array[1](c);
}
function b(a, b, c) {
  return array[(b < a) * 1](c);
}
Tests:
  • branch

     
    a(10, 5, 100);
  • branchless

     
    b(10, 5, 100)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    branch
    branchless

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36 Edg/101.0.1210.32
Chrome 101 on Windows
View result in a separate tab
Test name Executions per second
branch 5904380.0 Ops/sec
branchless 5887257.5 Ops/sec