Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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:
one year ago
Benchmark engine:
Benchmark.js
a*a
138.3M/s
a**2
132.7M/s
Math.pow(a, 2)
132.2M/s
ajax bigInt.square
107.3M/s
View exact numbers
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
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()