Visual Studio 2015 Brings Improved Performance Testing Tools
We often come across software that is slow to load or it might just hang while carrying out certain tasks. This can be a huge annoyance to the user and it is unacceptable in the case of a paid software. A lot of testing resources are consumed in checking whether an application functions as expected, but not much attention is paid to see if the application is quick to do the task. Because a lot of testing may take place on fast machines, the performance on slow machines is often neglected. This is often the case when trying to release software without a public beta test.
We often come across software that is slow to load or it might just hang while carrying out certain tasks. This can be a huge annoyance to the user and it is unacceptable in the case of a paid software. A lot of testing resources are consumed in checking whether an application functions as expected, but not much attention is paid to see if the application is quick to do the task. Because a lot of testing may take place on fast machines, the performance on slow machines is often neglected. This is often the case when trying to release software without a public beta test. Although a public beta test is not always possible for applications meant for a very specific customer. In that case, software performance testing needs to be conducted on a wide set of machines with different configurations. This also applies to mobile software apps and web apps.
Visual Studio 2015, which has been in beta for quite some time has brought in a set of debugging and performance testing tools for obvious purposes. It is a well appreciated addition for code testers and even developers. One of the most useful tools for performance testing is the code is the Diagnostics Tool Window which gives an overview of the time consumed by each thread. This is especially useful in determining the slow threads, for example the thread that is loading images or indexing files on the hard drive. The CPU time graph keeps updating as your application runs and it is a great indicator to tell which parts of the code are sluggish.
One must remember that your code will behave differently on different computer configurations. You may be testing an internet connected application on a fast connection, but the same application will time out or max out on a slow connection and fail.
IntelliTrace is also a handy feature in VS 2015 where the developer can insert debug lines at the start and end of the code to be tested and then look at the time stamp to determine time consumption. Using IntelliTrace, the developer can also look out for CPU and memory spikes as the code is being executed.
A snapshot feature comes to great help while using IntelliTrace. It is as if both are meant to go hand in hand. Once you have located the part of the code that is causing CPU or memory spike, you can set your snapshot over there, run your code further and see the change in the CPU usage and memory from the time of the first snapshot. Visual Studio 2015 allows you to take multiple snapshots and show a percent change in memory usage since the last snapshot.
With Visual Studio 2015, you can also monitor each object and the corresponding heap size. It is a great feature to see which object is growing large and causing trouble. With the snapshot feature, you can also see how many new objects were created since the last snapshot just like you checked the memory usage which we saw earlier.
Visual Studio 2015 performance diagnostic tools are truly welcomed by the developer’s community world over.
You may be interested
Is Big Data the Salvation of the Newspaper Industry?Rehan Ijaz - May 27, 2017
The newspaper industry has been declining for the past decade. In 2007, Paul Gillan, a former reporter, launched the website…
Big Data is the Key to the Future of Multi-Device MarketingRyan Kh - May 26, 2017
Digital marketers must reach customers across multiple devices. According to Criteo Mobile eCommerce Report, 40% of all online transactions involve…
Empowering Partners and Customers with Data Insights: A Win-Win for EveryoneGuy Greenberg - May 26, 2017
All businesses in the digital age rely on analytics for various activities: Product managers rely on analytics to gain insights…