Tests:
  • pow int

    AخA
     
    var tmp = Math.pow(6, 21);
  • ** int

     
    var tmp = 6 ** 21;
  • * int

     
    var tmp = 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6;
  • pow float

     
    var tmp = Math.pow(6.1, 21.1);
  • ** float

     
    var tmp = 6.1 ** 21.1;
  • * float

     
    var tmp = 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1 * 6.1;
  • ** bigint

     
    var tmp = 6n ** 21n;
  • * bigint

     
    var tmp = 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n * 6n;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    pow int
    ** int
    * int
    pow float
    ** float
    * float
    ** bigint
    * bigint

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Linux
View result in a separate tab
Test name Executions per second
pow int 151516864.0 Ops/sec
** int 124249296.0 Ops/sec
* int 119102904.0 Ops/sec
pow float 103902560.0 Ops/sec
** float 121614648.0 Ops/sec
* float 130819520.0 Ops/sec
** bigint 4712637.5 Ops/sec
* bigint 111259632.0 Ops/sec