![]() ![]() Let us assume that this URL is an endpoint of a GET request for clients (mobile apps) to receive a certain response. We assume an example of load testing an instance of a test server of XYZ APIs hosted in the cloud. This will simulate 100 connection requests ( -n) over 10 concurrent threads ( -c) to Testing an example server API e filename Output CSV file with percentages servedįor a full list of available options, $ ab -h or $ ab -help Example X proxy:port Proxyserver and port number to use P attribute Add Basic Proxy Authentication, the attributes are a colon separated username and password. A attribute Add Basic WWW Authentication, the attributes are a colon separated username and password. v verbosity How much troubleshooting info to print p postfile File containing data to POST. c concurrency Number of multiple requests to make at a time. n requests Number of requests to perform It basically determines the number of requests per second an HTTP server is capable of serving tweakable by options. It benchmarks your HTTP server by automating a scenario of sending multiple requests with concurrent clients.Ī command-line tool to send multiple automated requests to check the performance of your server. In Windows, download the Apache Binaries, extract it, and run the executable ab.exe file from apache/bin/ folder.Īb is a simple load testing command from Apache. ![]() In Debian system, apache2-utils package contains this tool so you might need apt-get install apache2-utils to use it. ![]() It is available by default in your MacOS and Linux terminals given you have successfully installed Apache2. Apache webserver provides a command-line tool - ab. ![]()
0 Comments
Leave a Reply. |