Webbench is famous.
website Stress testTools that can test the performance of different services on the same hardware and the health of the same service on different hardware. Webbech's standard test can show us two things about the server:
corresponding requests per second and amount of data transferred per second。 Webbench not only can have
QuasiThe ability to test static pages and also to test dynamic pages (asp,php,java,cgi). And he supports static or dynamic performance testing of secure websites that contain SSL, such as e-commerce sites. WEBBENCH1.5:HTTP://PAN.BAIDU.COM/S/1BOVKWTX Decompression Tar zxvf webbench-1.5.tar.gzcd webbench-1.5 compilation MakePrompt to install Gcc[[email protected] webbench-1.5]# make
Cc-wall-ggdb-w-o-c-o webbench.o webbench.c
Make:cc:Command not found
Make: * * * [WEBBENCH.O] Error 127
Yum install-y gccPrompt to install Ctags[[email protected] webbench-1.5]# make
Cc-wall-ggdb-w-o-c-o webbench.o webbench.c
webbench.c:in function ' Alarm_handler ':
webbench.c:77:31:warning:unused parameter ' signal ' [-wunused-parameter]
static void Alarm_handler (int signal)
Cc-wall-ggdb-w-o-o Webbench WEBBENCH.O
Ctags *.c
/bin/sh:ctags:command not found
Make: [tags] Error 127 (ignored)
[Email protected] webbench-1.5]#
Yum install-y ctagsCopy the compiled binary file to the bin directory [email protected] webbench-1.5]#
CP Webbench/usr/bin
[Email protected] webbench-1.5]# Webbench
webbench [option] ... Url
-f|--force Don ' t wait for reply from server.
-r|--reload Send Reload Request-pragma:no-cache.
-t|--time <sec> Run benchmark for <sec> seconds. Default 30.
-p|--proxy <server:port> Use proxy server for request.
-c|--clients <n> Run <n> HTTP clients at once. Default one.
-9|--HTTP09 use http/0.9 style requests.
-1|--HTTP10 use http/1.0 protocol.
-2|--HTTP11 use http/1.1 protocol.
--get use Get Request method.
--head use Head request method.
--options use Options Request method.
--trace use trace request method.
-?| -h|--help this information.
-v|--version Display program version. Local Test Nginxparameter Description:-C for concurrency number,-T for time (seconds)
[Email protected] webbench-1.5]# webbench-c 200-t http://192.168.1.115/index.html
Webbench-simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source software.
Benchmarking:get http://192.168.1.115/index.html
Clients, running Sec.
speed=492656 pages/min, 2003467 bytes/sec.
requests:246328 susceed, 0 failed.
Reference: http://www.cnblogs.com/AliceAn/p/4205102.html
Webbench website Stress test