Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Perfomance test between power operation methods
(version: 0)
Comparing performance of:
pow function vs exponentiation operator
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var k = 5e4, v = new Float64Array(k).map(Math.random), i = k, j = k, a = 0, b = 0;
Tests:
pow function
while (i--) a += Math.pow(Math.random(), v[i]);
exponentiation operator
while (j--) b += Math.pow(Math.random(), v[j]);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
pow function
exponentiation operator
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?