Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Exponentiation vs Math.pow test
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 14; Mobile; rv:121.0) Gecko/121.0 Firefox/121.0
Browser:
Firefox Mobile 121
Operating system:
Android
Device Platform:
Mobile
Date tested:
2 years ago
Math.pow
72K/s
Exponentiation
70K/s
View exact numbers
Test name
Executions per second
✓
Math.pow
72,038 Ops/sec
Exponentiation
69,922 Ops/sec
Tests:
Exponentiation
let n = 50; let total = 0; for (var i = 0; i < 10000; i++) { let y = n ** 7; total += y; } console.log(total);
Math.pow
let n = 50; let total = 0; for (var i = 0; i < 10000; i++) { let y = Math.pow(n, 7); total += y; } console.log(total);