Apache Benchmark (`ab`) is included with the Apache HTTP server package. To install `ab`, you can install the Apache package itself, which typically includes the `ab` tool along with the Apache server.
For Ubuntu or Debian-based systems, you can install Apache's `ab` tool by following these steps:
Step 1: Update Package Lists
Open the terminal and update the package lists to ensure you're installing the latest versions available:
sudo apt update
Step 2: Install Apache2 Utils Package
Use `apt` to install the Apache2 Utils package, which includes the `ab` tool:
sudo apt install apache2-utils
Step 3: Verify Installation
After the installation is complete, verify the installation of `ab` by running the following command:
ab -V
This command should display the version of `ab` installed on your system, confirming that the installation was successful.
Your First Test
ab -n 1000 -c 10 -s 60 http://example.com/your_endpoint
-n 1000
: Specifies the number of requests to perform.-c 10
: Defines the concurrency level (number of multiple requests to perform at a time).-s 60
: Sets the timeout to 60 seconds. Adjust this value according to your requirements.
Your Result Should be
ebluedipu@ebluedipu-H81:~$ ab -n 100 -c 10 -s 60 https://college.ebluesys.com/app/registration
This is ApacheBench, Version 2.3 <$Revision: 1843412 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking college.ebluesys.com (be patient).....done
Server Software: nginx/1.24.0
Server Hostname: example.com
Server Port: 443
SSL/TLS Protocol: TLSv1.2,ECDHE-ECDSA-AES256-GCM-SHA384,256,256
Server Temp Key: ECDH P-256 256 bits
TLS Server Name: example.com
Document Path: /app/registration
Document Length: 254 bytes
Concurrency Level: 10
Time taken for tests: 3.881 seconds
Complete requests: 100
Failed requests: 0
Non-2xx responses: 100
Total transferred: 62800 bytes
HTML transferred: 25400 bytes
Requests per second: 25.76 [#/sec] (mean)
Time per request: 388.145 [ms] (mean)
Time per request: 38.815 [ms] (mean, across all concurrent requests)
Transfer rate: 15.80 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 228 257 19.5 253 303
Processing: 76 87 7.2 85 107
Waiting: 76 87 7.2 85 106
Total: 304 344 26.4 338 409
Percentage of the requests served within a certain time (ms)
50% 338
66% 348
75% 366
80% 370
90% 385
95% 400
98% 401
99% 409
100% 409 (longest request)
www not working when you are creating a subdomain. Open your account where you can change your DNS r..
How to use the laptop as a hotspot. Make sure your network connection is enabled. ..
Get the latest news and updates by signing up to our daily newsletter.We won't sell your email or spam you !