Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Math.pow vs multiplication with decimals and multiple integers
(version: 0)
Comparing performance of:
pow vs mult
Created:
2 years ago
by:
Guest
Jump to the latest result
Tests:
pow
let array = []; for(let i = 0; i < 100; i++){ array.push(Math.pow(i,2)); } for(let i = 0; i < 100; i++){ const decimal = i+.1; array.push(Math.pow(decimal,2)); }
mult
let array = []; for(let i = 0; i < 100; i++){ array.push(i*i); } for(let i = 0; i < 100; i++){ const decimal = i+.1; array.push(decimal*decimal); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
pow
mult
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Browser/OS:
Firefox 121 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
pow
1528646.8 Ops/sec
mult
1621803.6 Ops/sec
Related benchmarks:
Multiply using Decimal.js vs Multiply using native numbers
Math.pow vs Exponentiation vs Multiplication
multiplication vs exponentiation
Math.pow vs Exponentiation vs Multiplication pow 4
math.pow vs multiply vs exponentiation
Comments
Confirm delete:
Do you really want to delete benchmark?