Tests:
  • Outside

    AخA
     
    var p = [1,2,4,8,16,32,64,128,256,512];
    for (var n=0;n<10;n++) {
            var s = (Math.floor(65*0.098)+65)*p[n];
    };
  • Inside

     
    for (var n=0;n<10;n++) {
            var s = (Math.floor(65*0.098)+65)*Math.pow(2,n);
    };
  • Outside with division

     
    var p = [1,2,4,8,16,32,64,128,256,512];
    for (var n=0;n<10;n++) {
            var s = (Math.floor(65/10.24)+65)*p[n];
    };
  • Inside with division

     
    for (var n=0;n<10;n++) {
            var s = (Math.floor(65/10.24)+65)*Math.pow(2,n);
    };
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Outside
    Inside
    Outside with division
    Inside with division

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 years ago)
Mozilla/5.0 (Windows NT 6.1; rv:53.0) Gecko/20100101 Firefox/53.0
Firefox 53 on Windows 7
View result in a separate tab
Test name Executions per second
Outside 18566682.0 Ops/sec
Inside 11878778.0 Ops/sec
Outside with division 18621244.0 Ops/sec
Inside with division 11797327.0 Ops/sec