How to test my site on a slow internet?

Asked

Viewed 747 times

17

When completing the development of a website or system, we always test its performance with our internet.

Faced with this, there is some way to simulate the performance of my system a slow internet to perform such tests without changing anything on my internet connection?

  • 1

    All the answers are great and professional, but as far as I know the throttling of browsers does not simulate the actual latency of a slow network. It also does not simulate high packet loss rates. It wants to test the site with a real slow internet, it uses a 3G connection from Tim...

  • 1

    @Renan I’ve tested a lot this way, and I’m happy to say I don’t need it anymore these days xD... Now, about trolling, it doesn’t really simulate packet loss (or if it simulates I haven’t found it yet), but latency is configurable, as well as download and upload.

3 answers

17

One way to do this is by using Google Chrome itself.

With it you can configure the speed you want to perform such tests.

To use, just go to developer tools (F12), on the flap Network and select the option of "Throttling".

The image below illustrates better:inserir a descrição da imagem aqui

Also remembering that you can disable the cache in disable cache to test access without using cache.

You can see the full tutorial made by Google itself to better understand how it works.

7


This is a complementary response, Firefox also has something similar to Chrome, first select the "responsive mode" in Developer Tools:

dev

And then open the second combobox and choose the desired option:

simular

In addition to these, there is an applet (which I use for a long time) called Sloppy, with it is possible to simulate not only for browsers but for almost any tool of the operating system, although in the site it ask to run directly is possible to download and run it directly on your machine, follows the repository to download https://github.com/d6y/sloppy, limiting a specific domain:

limitando

  • 1

    Very good, I really liked Sloppy

2

Complementing, there is the possibility of doing this test using the Jmeter.

I will not go into details of how to use the same, only how to configure it to simulate different internet speeds.

Editing the file <jmeter_home>/bin/user.properties and adding the properties:

httpclient.socket.http.cps=0
httpclient.socket.https.cps=0

Changes these properties to a desirable value, such as the examples below:

Mobile data GPRS : 171 kbit/s = 21888
Mobile data EDGE : 384 kbit/s = 49152
Mobile data HSPA : 14,4 Mbp/s = 1843200
Mobile data HSPA+ : 21 Mbp/s = 2688000
Mobile data DC-HSPA+ : 42 Mbps = 5376000
Mobile data LTE : 150 Mbp/s = 19200000
WIFI 802.11a/g : 54 Mbit/s = 6912000
WIFI 802.11n : 600 Mbit/s = 76800000
Ethernet LAN ; 10 Mbit/s = 1280000
Fast Ethernet : 100 Mbit/s = 12800000
Gigabit Ethernet : 1 Gbit/s = 128000000
10 Gigabit Ethernet : 10 Gbit/s = 1280000000
100 Gigabit Ethernet : 100 Gbit/s = 12800000000
WAN modems V.92 modems : 56 kbit/s = 7168
ADSL : 8 Mbit/s = 1024000
ADSL2 : 12 Mbit/s = 1536000
ADSL2+ : 24 Mbit/s = 3072000

For other values inform according to the formula:

cps = (target bandwidth in kbps * 1024) / 8



More details on official documentation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.