In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Brief description:
Apache Bench is Apache's website performance test Mini Program, the program name under the Windows platform is referred to as ab.exe, to get this 80k executable program, users need to download the entire Apache Httpd software package! It is really troublesome to install it on the computer.
Webbench is also a website performance test Mini Program, you can get the site's throughput, transmission speed and other basic performance indicators. The program is programmed under Linux, and it is easy to compile and install under Linux, but the program under Windows is not.
For convenience, I copied ab.exe Mini Program separately, and downloaded the source code of webbench, compiled the source code using CodeBlocks procedures and Cygwin64, and generated an executable file webbench.exe under the Windows7 environment to facilitate the simultaneous use of two procedures on a platform for website performance testing.
2. Download address:
Download address of two website performance testing gadgets under Windows7 64-bit:
Link: https://pan.baidu.com/s/1hDhBlNc4ss_sp-qPYk_kEQ
Extraction code: upas
3. Run screenshot:
Webbench test results under 01-Windows7 64-bit
02-Apache Bench performance testing gadget-run parameters
03-Apache Bench performance testing gadget-Test results 1
04-Apache Bench performance testing gadget-Test results 2
4. Test command and result analysis
Ab.exe-n 15000-c 100 http://www.abc.com/
#-n 15000 A total of 15000 access requests sent N
#-c 100 simulates 100 users to access C simultaneously
# result Analysis:
# Concurrency Level: C simulates the number of concurrent users (data entered on the command line)
# Time taken for tests: the time to complete the entire test in T seconds
# Requests per second: server performance (number of requests per second that can be processed under current concurrency) = N _ max T
# Time per request: (mean) from the user's point of view, the average time spent per request = T / (N _ A _ C)
# explanation: it takes T seconds for each user to send C requests, and the average time spent on each request is T / (Namp C).
# Time per request: (mean, across all concurrent requests) calculated from the server point of view, the average time it takes to complete each request = T _ mean N
# Transfer rate: transfer rate
Webbench.exe-c 100-t 5 http://www.abc.com/
#-c 100 simulates 100 users accessing at the same time
#-t 5 lasts for 5 seconds
# http://www.abc.com/ of the URL to be tested. Note that when testing only the name of the web station, add / at the end.
#
# how many requests per minute for Speed pages/min and how many requests per second for Speed pages/sec
# bytes/sec transfer rate
# Requests: total number of requests completed
5. Points for attention
!!! Do not send a large number of access requests to public web sites! It can be used to test the performance of your website before it is launched.
6. Use help
C:\ > ab-help
Ab: wrong number of arguments
Usage: ab [options] [http://]hostname[:port]/path
Options are:
-n requests Number of requests to perform
-c concurrency Number of multiple requests to make at a time
-t timelimit Seconds to max. To spend on benchmarking
This implies-n 50000
-s timeout Seconds to max. Wait for each response
Default is 30 seconds
-b windowsize Size of TCP send/receive buffer, in bytes
-B address Address to bind to when making outgoing connections
-p postfile File containing data to POST. Remember also to set-T
-u putfile File containing data to PUT. Remember also to set-T
-T content-type Content-type header to use for POST/PUT data, eg.
'application/x-www-form-urlencoded'
Default is' text/plain'
-v verbosity How much troubleshooting info to print
-w Print out results in HTML tables
-i Use HEAD instead of GET
-x attributes String to insert as table attributes
-y attributes String to insert as tr attributes
-z attributes String to insert as td or th attributes
-C attribute Add cookie, eg. 'Apache=1234'. (repeatable)
-H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip'
Inserted after all normal header lines. (repeatable)
-An attribute Add Basic WWW Authentication, the attributes
Are a colon separated username and password.
-P attribute Add Basic Proxy Authentication, the attributes
Are a colon separated username and password.
-X proxy:port Proxyserver and port number to use
-V Print version number and exit
-k Use HTTP KeepAlive feature
-d Do not show percentiles served table.
-S Do not show confidence estimators and warnings.
-q Do not show progress when doing more than 150 requests
-l Accept variable document length (use this for dynamic pages)
-g filename Output collected data to gnuplot format file.
-e filename Output CSV file with percentages served
-r Don't exit on socket receive errors.
-m method Method name
-h Display usage information (this message)
C:\ > webbench-help
Webbench [option]... URL
-f |-- force Don't wait for reply from server.
-r |-- reload Send reload request-Pragma: no-cache.
-t |-- time Run benchmark for seconds. Default 30.
-p |-- proxy Use proxy server for request.
-c |-- clients Run 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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.