Reputation: 5090
How to simulate slow page load in ASP.NET?
Upvotes: 15
Views: 4751
Reputation: 251
If you are using Google Chrome. There is a native function on the browser. Press F12 and go to Network tab.
Upvotes: 0
Reputation: 526
if your application is x-browser you could use a firefox add-on, like Firefox Throttle
https://addons.mozilla.org/en-US/firefox/addon/5917/
or maybe just use firefox for testing if your web application targets a specific browser
Update (9/15/2012): This plugin is no longer active... "This add-on has been disabled by an administrator."
Upvotes: 5
Reputation: 10086
Are you trying to determine how your site or app behaves under high load? If so I can recommend jMeter. The advantage of this approach is that you can create different groups of threads which can approximate the behaviour of real users hitting your app.
Upvotes: 0
Reputation: 180944
Bandwidth or Latency?
For bandwidth, you can use the Bandwidth Throttling module for IIS6 or IIS7.
Not sure how to simulate high Latency though.
Upvotes: 4
Reputation: 5606
I would suggest looking at Visual Studio's performance testing capabilities.
Here's a quick guide:
Upvotes: 2
Reputation: 453298
Fiddler can be used to simulate modem (or other slow speed connections)
Related Question: Is it possible to slow down IIS?
Upvotes: 13
Reputation: 2801
The simplest way is to add in the page load event handler
Threading.Thread.Sleep(numberOfMillisecondsToDelay);
Upvotes: 5