How to check performance of your webapps for traffic at a point of time?

Check your web app's performance before you launch it or deploy updates to production. This will help you in assessing whether your app is ready for release or not. Feel more confident that your app can handle the traffic during peak use or at your next marketing push.

Prepare your environment

  • You'll need an Azure subscription. You can get one free through Visual Studio Dev Essentials.

  • You'll need a Visual Studio Team Services (VSTS) account to keep your performance test history. A suitable account will be created automatically when you set up your performance test. Or you can create a new account or use an existing account if you're the account owner. [What else can I do with a VSTS account?](reference-qa.md#Team ServicesAccount)

  • Deploy your app for testing in a non-production environment. Have your app use an App Service plan other than the plan used in production. That way, you don't affect any existing customers or slow down your app in production.

Set up and run your performance test

  1. Sign in to the Azure Portal. To use a VSTS account that you own, sign in as the account owner.

  2. Go to your web app.

    Go to Browse All, Web Apps, your web app

  3. In the DEVELOPMENT TOOLS section choose Performance test.

    Go to Development Tools, Performance Test

  4. Now you'll link a VSTS account to keep your performance test history. Choose Set Account.

    Select existing VSTS account, or create a new account

  5. If you have a VSTS account to use, select that account. If you don't, create a new account.

    Select existing VSTS account, or create a new account

  6. Choose + New to create a new performance test.

    Create, set up, and run your performance test

  7. Set the details and run the test. Your web app's default URL is added automatically. You can change the URL to test other pages (HTTP GET requests only). To simulate local conditions and reduce latency, select a location closest to your users for generating load.

    Create, set up, and run your performance test

    You simulate load on your app by generating virtual users (customers) who visit your web site at the same time. This will show how many requests are failing or responding slowly.

    As an example, suppose you have an app that gave out coupons at last year's holiday sale. This event lasted 15 minutes with a peak load of 100 concurrent customers. You want to double the number of customers this year. You also want to improve customer satisfaction by reducing the page load time from 5 seconds to 2 seconds. So, you can test your updated app's performance with 250 users for 15 minutes.

    What is the maximum test duration and number of concurrent users?

  8. Watch the progress in real time while the test runs. During the first minute, the page loads slower than is required.

    Performance test in progress with real-time data

  9. After the test is done, view the final results. You can see that the page loads much faster after the first minute. This helps identify where you might start troubleshooting the problem.

    Completed performance test shows results, including failed requests

Ask a question

"Hey couldn't find what you were looking for in our knowledgebase? Please enter your question here".

First Name *
Last Name *
Email Address *
Question *
Captcha *