Script Preparation code:
Tests:
  • int*int

  • int**2

  • Math.pow(int,2)

  • float*float

  • float**2

  • Math.pow(float, 2)

  • int*int*int*int*int

  • int**5

  • Math.pow(int,5)

  • float*float*float*float*float

  • float**5

  • Math.pow(float,5)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    int*int
    int**2
    Math.pow(int,2)
    float*float
    float**2
    Math.pow(float, 2)
    int*int*int*int*int
    int**5
    Math.pow(int,5)
    float*float*float*float*float
    float**5
    Math.pow(float,5)

    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/90.0.4430.93 Safari/537.36
Chrome 90 on Windows
View result in a separate tab
Test name Executions per second
int*int 4696688.5 Ops/sec
int**2 9132634.0 Ops/sec
Math.pow(int,2) 3623022.5 Ops/sec
float*float 5289712.5 Ops/sec
float**2 8990032.0 Ops/sec
Math.pow(float, 2) 3592944.8 Ops/sec
int*int*int*int*int 2154760.8 Ops/sec
int**5 4836198.5 Ops/sec
Math.pow(int,5) 3605313.0 Ops/sec
float*float*float*float*float 2051419.4 Ops/sec
float**5 4642816.0 Ops/sec
Math.pow(float,5) 3652745.5 Ops/sec


;