Script Preparation code:
Tests:
  • x * x

  • Math.pow(x, 2)

  • x ** 2

  • y * y

  • Math.pow(y, 2)

  • y ** 2

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    x * x
    Math.pow(x, 2)
    x ** 2
    y * y
    Math.pow(y, 2)
    y ** 2

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Chrome 67 on Windows 7
View result in a separate tab
Test name Executions per second
x * x 4607936.0 Ops/sec
Math.pow(x, 2) 2844376.0 Ops/sec
x ** 2 8545139.0 Ops/sec
y * y 4839462.0 Ops/sec
Math.pow(y, 2) 2934075.0 Ops/sec
y ** 2 8612083.0 Ops/sec