Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

Measuring speed

$
0
0
I was trying to find out what is faster: to access constant or use it directly. I used the following code + Profiler:
Code:

Dim i As Double, l As Double, l2 As Double
For i = 1 To 3000000000
    l = UInt32.MaxValue
    l2 = 4294967295
Next

Profiler indicated that this function is doing 99.85% of the work, but the following information is confusing:


8.9 + 17.6 = 26.5%, where the rest 73.5% goes?

Viewing all articles
Browse latest Browse all 27189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>