Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15
Safari 17
Mac OS X 10.15.7
Desktop
11 months ago
Test name Executions per second
n*n 470732992.0 Ops/sec
n**2 480963488.0 Ops/sec
Math.pow(n, 2) 19714760.0 Ops/sec
Tests:
  • n*n

  • n**2

  • Math.pow(n, 2)