Install and use the website and interface performance testing tool webenche

Source: Internet
Author: User

Install and use the website and interface performance testing tool webenche

Stress testing is an important task in O & M. For example, before a website goes online, the quality of data indicators will directly affect the user experience. However, there is a commonality in the stress test, that is, the results of the stress test are not exactly the same as those of the actual load, even if the stress test is done well, it cannot be guaranteed that the 100% and online performance indicators are the same.

In the face of these problems, we have to try our best to simulate them. Therefore, stress testing is very necessary. With this data, we can be aware of our own maintenance platform.

Webbench is a well-known website stress testing tool developed by Lionbridge Inc. (http://www.lionbridge.com.

Webbench official homepage: http://home.tiscali.cz /~ Cz210552/webbench.html

Webbench can test the performance of different services on the same hardware and the running status of the same service on different hardware.

The standard webbench test shows two items of the server: the number of requests per second and the amount of data transmitted per second.

Webbench can not only test quasi-static pages, but also test dynamic pages (ASP, PHP, JAVA, CGI.

In addition, it supports static or dynamic performance tests for secure websites with SSL, such as e-commerce websites.

Webbench is a simple stress testing tool. Webbench can simulate up to 30 thousand concurrent connections to test the load capacity of the website.

(1) install Webbench

wget http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gztar zxvf webbench-1.5.tar.gzcd webbench-1.5makemake install

(2) Use webshells

Webbench-c 1000-t 60 http://www.baidu.com/webbench-c concurrency-t run test time tested URL

(3) Test Results

yhm@yhm-pc:~/webbench-1.5# webbench -c 1000 -t 60 http://www.baidu.com/Webbench - Simple Web Benchmark 1.5Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software. Benchmarking: GET http://www.baidu.com/1000 clients, running 60 sec. Speed=217591 pages/min, 5544152 bytes/sec.Requests: 217581 susceed, 10 failed.

Response requests per second: 217591 pages/min, 5544152 bytes/sec per second

When the concurrency is 1000, it is displayed that 10 connections have been failed, which indicates that it is overloaded.

Note: During the test, the number of concurrent tasks should be increased from small to large. Use TOP to check the website load, or open the page to view the speed.

The above is the Webbench tutorial, which is very simple.

Summary:

1. stress testing should be conducted before the product is launched, rather than after the launch;

2. The concurrency during testing should increase gradually from small to small. For example, when the concurrency is 100, check the website load and whether the page is open smoothly, what is concurrency 200, what is concurrency when the website is opened slowly, and what is concurrency when the website cannot be opened;

3. Perform a Page Test in more detail. e-commerce websites can focus on shopping cart and promotion pages, because these pages account for a large proportion of the total site traffic.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.