Bottleneck Testing in Source Code

nimmy abraham 1 Reputation point
2020-08-19T07:07:34.083+00:00

Hello,

Can anyone help me regarding this?

Please let me know how can we do the bottleneck testing in Source code ?

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
351 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,086 Reputation points Microsoft Vendor
    2020-08-20T08:03:35.217+00:00

    Hello Nimmy

    In Visual Studio, there are some profiling tools for you to test the performance of your programs/codes. You can refer to this document First look at profiling tools, for example, select Debug > Performance Profiler… > choose one or more tools to run such as CPU Usage, Database and Memory Usage > then start the diagnostic session and collect the profiling data. After that, you can check the functions which are invoked and used by the program and find the information of CPU usage, Database, Memory Usage and so on.

    If you’d like to analyze the bottleneck of your project by using load test, you can refer to this document Edit load patterns to model virtual user activities, and try to set more user counts (load patterns: constant and step). After that, follow steps below to analyze load test results using the Load Test Analyzer.

    1. Monitor a load test when it is running.
    2. Analyze a load test after it has completed.
    3. View results from a previous load test.

    By the way, If you’d like to test and know how long do every functions and code lines run, you can try to use Stopwatch Class(.NET).

    Best Regards,
    Tianyu

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.