The mimic slowness of the web server on the local computer

Is it possible to somehow reproduce the slower loading speeds of my website, as if they were hosted on a web server, but from my local host?

It's hard to check things like Ajax download icons when content loads so fast from your local machine, so I think this could help me a lot?

I was wondering if there is a tool you could use to do this, or if you would need to use javascript to add setTimeout or setInterval code?

+6
hosting
source share
8 answers

If you are using Windows, download the Fiddler Fiddler tool.

This will install an HTTP proxy, which you can use to test HTTP headers and view all HTTP traffic on your PC and browser. Then you can use the Rules> Performance> Simulate Modem Speed ​​option to slow down the browser’s HTTP connection.

There is also a Fiddler Switch plugin for Firefox, available for switching the Fiddler proxy server.

+6
source share

If you are on the * nix platform, you can change the “good” level to basically make your process an afterthought behind most others until you reach the “lag” level that suits your needs.

+1
source share

First of all, never download your code with the if ( DEBUG ) workSlowly(); . You will be bitten by this practice and it will hurt.

Secondly, use one of the traffic control solutions that have already been posted here. I am going to add a Java based solution: Sloppy . It is dead easy to configure and works wherever Java works.

+1
source share

This question may help you .

Personally, I am adding something like this to the top of my library file or any file is always included:

 if(DEBUG) { sleep(2); } 

The above is PHP, but most languages ​​will have something similar.

0
source share

One of the options (if you use Linux, but there are similar tools on another unix system) Traffic shaping (google for the "HTB", "qdics" and "tc" commands)

The second option would be apache_mod_cband , which is also probably easier to get started.

0
source share

You could try Charles. This is a cross platform - I use it and it works very well.

http://www.charlesproxy.com/

0
source share

In windows you can use Proxomitron or you can install a script (for example,). Both allow you to set the download speed.

0
source share

If you use Fiddler 2 , you can install this add-on: Fiddler is a connection simulator .

It gives you a good interface for tuning Bandwith and various kinds of simulations.

0
source share

All Articles