开发者

VB.NET Application Performance Test

Currently I'm writing a VB.NET app and it's getting b开发者_Go百科ig, resulting in its become very slow.

Is there any application (or plug in) that can test the performance in seconds? I mean, when I click a button and it displays a product, I want to know exactly how long it is gonna take.


Visual Studio (certain versions) has a built-in code profiler:

  • Find Application Bottlenecks with Visual Studio Profiler

  • Beginners Guide to Performance Profiling

  • Analyzing Application Performance by Using Profiling Tools

  • Visual Studio Profiler Team Blog

There is also EqaTec's free code profiler (works well).

[Note: Big does not necessarily mean slow. Big slowdowns are often caused by code that has a complexity of O(N^2) or greater...]


Built in to visual studio is a profiler. You can find it under Analyze/Launch Performance Wizard.

You can also download a free trial of Ants Profiler (Red-gate.com) or dotTrace (JetBrains.com)


You can also use old school tracing.

Dim ts = Stopwatch.StartNew

' Your code goes here

' Format and display the TimeSpan value.
        Dim elapsedTime As String = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10)
        Console.WriteLine( "RunTime " + elapsedTime)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜