Tests:
  • pow

    AخA
     
    var size = 256/Math.pow(2,17);
  • **

     
    var size = 256/(2**17);
  • loop *

     
    var size = 256;
    for(let i=0; i<17; i++) {
        size /= 2;
    }
  • Non-integer pow

     
    var size = 256/Math.pow(2,16.5);
  • Non-integer **

     
    var size = 256/(2**16.5);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    pow
    **
    loop *
    Non-integer pow
    Non-integer **

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108 on Windows
View result in a separate tab
Test name Executions per second
pow 5992294.0 Ops/sec
** 823319552.0 Ops/sec
loop * 45223848.0 Ops/sec
Non-integer pow 5674114.5 Ops/sec
Non-integer ** 776649344.0 Ops/sec