First, Introduction
The Webbench is a very simple stress test tool used under Linux. The principle is that Webbench first fork out many sub-processes, each of which iterates over the Web Access test. The child process tells the parent process the result of the visit through the pipe, and the parent process makes the final statistical result. Webbench can simulate up to 30,000 concurrent connections to test the load capacity of the Web site.
Second, installation
1. Decompression
2. Compiling
3. Install the compilation environment
4. Compiling and installing
The Webbench file was generated and installed successfully
Third, the use
1. Parameter description
-T: Time to run Webbench-C: Number of child processes, that is, number of concurrent-F: Do not wait for return results-H: Help
2. Operation and Results100 Concurrent, running 10 sec Speed: Response requests per second: 5844 Pages/min, the amount of data transferred 11842144 bytes/sec per second.
Number of returns: 974 return success, 0 return failure
Iv. Summary
1, Webbench is a test tool similar to Apache AB, only responsible for sending requests, do not receive the return value
2. Common Parameters-C and-T represent how much time to run concurrently
3. The susseed returned by its result does not mean that the request was successful, such as:
Enter a non-existent website, the result is still have 479 susceed
4, the actual testing process, we can only go to the log to see if the server received so many requests. You can allow development to insert a flag in the code, as long as the access is successful and will be printed in the log. The number of successful requests is then calculated by the number of occurrences of the flag, divided by the elapsed time to obtain TPS
5, Webbench support the concurrency is very large, for this kind of access to the site class without parameters of the request, compared to LoadRunner and JMeter can save a lot of load machine, usually using a multi-core CPU server can.
6, using the Webbench test, test results and CPU cores, Hertz number, buffer is closely related, the larger the test results will be better.
Webbench of performance testing tools