Having a web app is nice. But the application must also be easy to use. The basic thing is that the web application should load as fast as possible. Therefore, we need to test how fast the web page loads and how fast the server and web application can handle a large number of concurrent users.
When it comes to web page speed, the basic thing to test is the speed of loading and displaying a web page
So you need to test the application. You can do a basic test by viewing the selected web page in your browser. You can also view the developer information to see in more detail which parts of the page load and display in what time.
Another option is to use web applications that test the loading speed of your website and display the results:
This test can also be called burn test or stress tets.
However, you will be interested in how your web application performs in real traffic, i.e. when multiple users access the site, which can sometimes be many. Therefore, you need to stress test your web application by simulating a situation where the web application is used simultaneously by many users.
Why perform a stress test? It will test the response of the application in a situation close to real use and thus verify that:
- the application is well written
- the web server is well configured
- the web server is sufficiently oversized
And thus the visitor will be happy to use your web application.
To stress test a web application, use the utility AB, which accesses a given web site and simulates many users accessing it in parallel.
The main parameters of the AB program are set by switches:
- n - specifies how many connections the program should perform.
- c - specifies how many parallel connections to make.
ab -n 100 -c 25 https://www.domena.cz
When it comes to application performance, i.e. the speed of an application given a combination of all possible influences, the following parameters affect the speed of a web application:
- Programming language, its version
- Program quality
- program on the server (PHP, Python, Java)
- Data storage
- Web server configuration
- Database configuration
- Server hardware performance
- Network speed and quality
Video demonstration on how to test the speed of a web application under load:
And here are the real tests of a few of my sites and a sample wordpress that I exported to a chart:
Články na podobné téma
VMware licensing change
Running Microsoft SQL Server on Linux
Backup: the Proxmox Backup Server
Linux as a router and firewall
How to upload a docker image to the Docker Registry
Linux: logical volume management
Linux Software RAID
Running a web application behind a proxy
Docker multistage build
Backing up your data by turning on your computer
Importing Windows into Proxmox virtualization
Docker and PHP mail
Docker and Cron
Lenovo ThinkPad X1 Carbon: LTE modem EM7544 commissioning
Yocto Project: Build custom operating system for embedded devices
Preparing a Linux server to run a web application in Python
How to address poor file share performance in Docker
How to get started using Docker correctly
Installing Linux on a dedicated HPE ProLiant DL320e server
Why use the JFS filesystem
How to boot from a 4TB drive with GTP using UEFI
Btrfs file system
WINE - running Windous programs under Linux
GNU/Linux operating system
If you are interested in receiving occasional news by email.
You can register by filling in your email news subscription.