Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to simulate slow page load in ASP.NET?

Tags:

c#

asp.net

How to simulate slow page load in ASP.NET?

like image 560
GilliVilla Avatar asked Jul 20 '10 00:07

GilliVilla


4 Answers

Fiddler can be used to simulate modem (or other slow speed connections)

Related Question: Is it possible to slow down IIS?

like image 162
Martin Smith Avatar answered Nov 11 '22 11:11

Martin Smith


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

Threading.Thread.Sleep(numberOfMillisecondsToDelay);
like image 41
Philip Smith Avatar answered Nov 11 '22 09:11

Philip Smith


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."

like image 5
jgemedina Avatar answered Nov 11 '22 11:11

jgemedina


Bandwidth or Latency?

For bandwidth, you can use the Bandwidth Throttling module for IIS6 or IIS7.

Not sure how to simulate high Latency though.

like image 4
Michael Stum Avatar answered Nov 11 '22 11:11

Michael Stum