GilliVilla
GilliVilla

Reputation: 5090

How to simulate slow page load in ASP.NET?

How to simulate slow page load in ASP.NET?

Upvotes: 15

Views: 4751

Answers (7)

mathias.horn
mathias.horn

Reputation: 251

If you are using Google Chrome. There is a native function on the browser. Press F12 and go to Network tab.

enter image description here

Upvotes: 0

jgemedina
jgemedina

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

Bayard Randel
Bayard Randel

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

Michael Stum
Michael Stum

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

JP.
JP.

Reputation: 5606

I would suggest looking at Visual Studio's performance testing capabilities.

Here's a quick guide:

http://vsptqrg.codeplex.com/

Upvotes: 2

Martin Smith
Martin Smith

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

Philip Smith
Philip Smith

Reputation: 2801

The simplest way is to add in the page load event handler

Threading.Thread.Sleep(numberOfMillisecondsToDelay);

Upvotes: 5

Related Questions