.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Performance tests on asp.net application

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :ASP.Net


I'm about to create new asp.net modules in an existing asp.net application  (Visual Studio 2008 professional, we might be upgrading to VS 2010). In some pages I'm gonna have to retrieve data from sql server 2008 database, and show them in a GridView or other... sometimes I'll have up to 4000 row to load in a sigle GridView.

I've been doing some research on how I can do some performance tests (never done any before, but I'm familiar with unit tests).

I found ATC, available in VS .Net Entreprise Developer if I'm not mistaken. I also found this in MSDN library, but it says Visual Studio 2003, I'm not sure it applies to 2008 too.

So, my question is : how can I do performance tests in a simple way on my web application ? what tool would be more appropriate ?



View Complete Post

More Related Resource Links

High-Performance .NET Application Development & Architecture

It has always been a goal of project architects to plan an effective strategy from the ground up in regards to an new application. All relevant factors are taken into consideration with respect to the application, from its design and layout to a functional website infrastructure. Pre-.NET strategies and design guidelines still effective now were developed with Microsoft's DNA (Distributed interNet Application) platform. This model successfully served the purpose of architecting N(any number of)-Tier (levels) applications. In its basic sense, as in most robust, distributed applications, you'll architect 3 main layers or Tiers: presentation, business rules and data access.

Improving Application Performance in .Net

Application performance has always been a concern for Web Application developers. This article contains guidelines and tips for maximizing application performance in ASP.NET.

Performance Tests: Precise Run Time Measurements with System.Diagnostics.Stopwatch

Everybody who does performance optimization stumbles sooner or later over the Stopwatch class in the System.Diagnostics namespace. And everybody has noticed that the measurements of the same function on the same computer can differ 25% -30% in run time. This article shows how single threaded test programs must be designed to get an accuracy of 0.1% - 0.2% out of the Stopwatch class. With this accuracy, algorithms can be tested and compared.

Performance Tuning on DirectShow Camera Application

Windows CE 6.0 supports DirectShow® components to develop a rich camera application. A minimum requirement of the camera application is to show preview, capturing the still images which is stored as a compressed file (JPG) format, capturing/multiplexing the video with or without audio i.e. stored as a compressed file (WMV) format.

Windows CE 6.0 provides sample applications for showing preview, capturing still and video using DirectShow® components. However these sample applications doesn't cover all the aspects to develop a commercial application. A commercial camera application at least satisfies the following performance criteria.

Performance: Find Application Bottlenecks with Visual Studio Profiler


We will introduce you to the Visual Studio Profiler by walking through a sample performance investigation, pinpointing code inefficiencies in some sample applications.

Hari Pulapaka and Boris Vidolov

MSDN Magazine March 2008

CLR Inside Out: Improving Application Startup Performance


Application startup performance matters to users, and there's plenty you can do to improve it. Here's a look at where to begin.

Claudio Caldato

MSDN Magazine March 2008

SQL Server: Uncover Hidden Data to Optimize Application Performance


SQL Server 2005 gathers a lot of useful data that you can use to identify areas where database performance can be improved. Here's what you need to improve performance.

Ian Stirk

MSDN Magazine January 2008

.NET CLR Profiling Services: Track Your Managed Components to Boost Application Performance


The Microsoft .NET platform provides you with a rich set of services for building profilers and application monitors for applications targeting the Common Language Runtime (CLR). These services expose runtime events that occur during the execution of a .NET application. They can be used to obtain information about managed code being executed under the runtime. This article describes the .NET CLR Profiling Services and shows how to use the services to build a simple profiler that will provide hot spot information for any .NET application. The sample profiler can easily be modified to suit other profiling and monitoring needs.

Anastasios Kasiolas

MSDN Magazine November 2001

Tip #107 Did you know . How to improve debugging performance for MVC2 application in Visual Studio 2

VS2010 Ultimate included IntelliTrace functionality by default.  IntelliTrace captures events (e.g. exceptions), and can affect performance of debugging. The typical performance hit is about 5% in the default mode (collection can be increased to...(read more)

The WCF serialization has a bad performance on 64Bit computer as 64Bit application ?


   My application has a bad performance while running on the 64bit computer as 64bit application. And I found the reason is that the WCF serialization of contract took most of the time.  The serialization and de-serialization's performance is worse than running as 32bit application on the 64bit computer.

   I wrote a demo to record the consuming time of serialization and de-serialization of contract. The application running as 64Bit took about twice time than running as 32Bit application. I don't know why the performance of WCF serialization of contract is so much different between 32Bit  application and 64bit application. Has anyone encountered this issue?  

   the part of demo code:

 public static void Read(DataContractSerializer serializera, MemoryStream stream,string description,int time)
      stream.Position = 0;
      Stopwatch watch;
      using (XmlDictionaryReader reader =
         XmlDictionaryReader.CreateTextReader(stream, XmlDictionaryReaderQuotas.Max))
        watch = Stopwatch.StartNew();

WCF, Silverlight 4.0, in ASP.NET: Application performance


Hai my dearest friends,

  I am developing a web application which will be available through SaaS Model. So there can be more than 1L users for this.

 I am familiar with JSON, and my clients want to use the application without any performance issue.

I was planning to implement it in JSON. But, later i came to know that Silverlight is performing much faster than JSON and while using it with WCF i can improve the performance much more.

Can anybody give me an exact solution for this issue please?

I am totally new to Silverlight and WCF. Please tell me how can i proceed through it.



performance issues with calling java webservices from WPF application?


I'm experiencing some major performance issues when calling a Java webservice from my WPF application. If I call the same webservice from a Java test application, I get a return in under 1 second. If I create a new .NET console application and make the same service call, I get a return in under 1 second as well:

class Program
 public Program()

 static void Main(string[] args)
  MyService svc = new MyService();
  for (int i = 0; i < 10; i++)
  Console.WriteLine("calling echo()");
  DateTime startTime = DateTime.Now;
  string result = svc.echo("Test " + i);
  DateTime endTime = DateTime.Now;
  TimeSpan ts = endTime.Subtract(startTime);
  Console.WriteLine("Execution Time = " + ts.TotalSeconds + " seconds, result=" + result);

However, when I try to call this same service from a WPF application, my response times range from 6-8 seconds. I tried moving the webservice calls to a BGW thread without any luck. I'm running the sample WPF application on the same machine as the sample .NET console application so it's not a network-related issue. Can someone explain why the execution times of calling the Java webservice below is so much slower when done from within a WPF application?

public partial class MainWindow : Window
 private MyServi

High performance chat application


Hi there. I want to create high-perfomance chat application compatible with mobile platforms.  (It is not actually chat, but architecture is pretty similar)

My biggest concerns are: I need to update messages for everybody every 1 second. Also I need to insert very often to database.

I'm just wondering whether there is a better way than doing trips every second to database?

And also, what are the best practices on creating this kind of applications?

General Application Performance - Speeding up Load Times...



I'm not sure if this is possible, or if perhaps I'm not thinking .Net enough for the idea, but I'm coming from a perspective of process creation and assembly loading, that appears to be much slower than I would desire. 

When creating a Win32 API application (non-.Net) in say Delphi or C++, and using Win32 DLLs I can statically or dynamically link the dlls and either way it doesn't really have much apparent issue on the loading of the application. 

I Currently have several library Assemblies which are "Engines" as they were that are used by other "control" assemblies that are used by the application.  So IN all effect there are 10 total assemblies to this application.  Now, when debugging, I've noticed the assemblies being loaded in sequence down at the bottom status bar of VS.  and sometimes given the nature of a rather full desktop of applications I don't always see the Splash screen.  However when I just run the application, not through VS for debugging, but i've installed it on another computer and just run the short cut to the exe, and even on average modern systems it can sometimes take 15 or 20 seconds (maybe more) before the splash screen even displays.  On slower systems this can even be extended to a full minute.  I'm wondering if my design of having t

How to Monitor or Evaluate the Performance of .NET Application ?

Please let me know the ways to monitor the performance(Memory and CPU Usage) of .Net Windows service application?
Ganesh Chellam Bangalore

Best Practices to Improve ASP.NET Web Application Performance

Performance tuning can be tricky. It's especially tough in Internet-related projects with lots of components running around, like HTML client, HTTP network, Web server, middle-tier components, database components, resource-management components, TCP/IP networks, and database servers. Performance tuning depends on a lot of parameters and sometimes, by changing a single parameter, performance can increase drastically. This Link lists out some tips for optimizing ASP.NET Web applications and many traps and pitfalls are discussed.

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend