Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Inverse + Multiply vs Divide
(version: 1)
Comparing performance of:
Divide vs Multiply by Inverse
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const n = 5.4321; const m = 1.2345;
Tests:
Divide
const resultN = n / Math.PI; const resultM = m / Math.PI;
Multiply by Inverse
const invPi = 1 / Math.PI; const resultN = n * invPi; const resultM = m * invPi;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Divide
Multiply by Inverse
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
4 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Browser/OS:
Chrome 142 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Divide
266128640.0 Ops/sec
Multiply by Inverse
251092720.0 Ops/sec
Related benchmarks:
pi 180
pi 180
pi 180
toPrecision
math floor
CalculatePhi temp
Math.pow vs Multiplication
min func vs inline min
* 10, round vs trunc vs floor vs parseFloat vs ~~ vs 0 | vs parseInt vs parseInt, 10
Comments
Confirm delete:
Do you really want to delete benchmark?