简体   繁体   中英

Web performance test in Visual Studio 2015

I know I can perform a web performance test using Visual Studio. However the results seem to only show the page load times.

Am I able to drill down to the code level to see which offending code is causing a slow down?

My answer below is from an end-user test perspective. If you have access to the application code, you can clearly debug performance via logs, utilization measurements, etc.

I suggest using a web profiler to analyze your network traffic. You can do this while generating load via your Visual Studio tests, or any other Web automation framework (JMeter, etc.).

There are many options, but you can use Chrome's developer tools right out of the box (CTRL-SHIFT-I).

For resource profiling: Select the Network tab, open the page(s) in question, and you'll see a nice timeline of all of the traffic and resources.

For time allocation: Select Timeline tab, select all of the capture options, open the page(s) in question, and you'll see a nice breakdown of time spent loading, scripting, rendering, etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM