Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Linux
Desktop
10 months ago
Test name Executions per second
n*n 565566208.0 Ops/sec
n**2 556320256.0 Ops/sec
Math.pow(n, 2) 7263087.5 Ops/sec
Tests:
  • n*n

  • n**2

  • Math.pow(n, 2)