Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
a*a vs a**2 vs Math.pow(a, 2) vs ajax.bigInt
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Browser:
Chrome 137
Operating system:
Windows
Device Platform:
Desktop
Date tested:
11 months ago
Test name
Executions per second
a*a
138252512.0 Ops/sec
a**2
132695304.0 Ops/sec
Math.pow(a, 2)
132234384.0 Ops/sec
ajax bigInt.square
107275280.0 Ops/sec
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/big-integer/1.6.40/BigInteger.min.js"></script>
Script Preparation code:
var a = 100;
Tests:
a*a
a*a;
a**2
a**2;
Math.pow(a, 2)
Math.pow(a, 2)
ajax bigInt.square
bigInt(a).square()