Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Math.pow vs Exponentiation vs Multiplication
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 18
Operating system:
iOS 18.4.1
Device Platform:
Mobile
Date tested:
one year ago
Math.pow
245.3M/s
Multiplication
241.8M/s
Exponentiation
235.0M/s
View exact numbers
Test name
Executions per second
✓
Math.pow
245,250,112 Ops/sec
Multiplication
241,824,144 Ops/sec
Exponentiation
234,986,384 Ops/sec
Script Preparation code:
var n = 1.234567;
Tests:
Math.pow
var x = Math.pow(n, 2);
Exponentiation
var y = n ** 2;
Multiplication
var y = n * n;