a*a vs a**2 vs Math.pow(a, 2) vs ajax bigInt.square| Test case name | Result |
|---|---|
| a*a | |
| a**2 | |
| Math.pow(a, 2) | |
| ajax bigInt.square |
| Test name | Executions per second |
|---|---|
| ✓ a*a | 138,252,512 Ops/sec |
| a**2 | 132,695,304 Ops/sec |
| Math.pow(a, 2) | 132,234,384 Ops/sec |
| ajax bigInt.square | 107,275,280 Ops/sec |