ab���������ο�
APACHE�Դ��IJ��Թ���AB(apache benchmark).��APACHE��binĿ¼��
��ʽ�� ./ab [options] [http://]hostname[:port]/path
������
-n requests Number of requests to perform
//�ڲ��ԻỰ����ִ�е�����������Ĭ��ʱ����ִ��һ������
-c concurrency Number of multiple requests to make
//һ�β���������������Ĭ����һ��һ����
-t timelimit Seconds to max. wait for responses
//���������е��������������ڲ�����ֵ��-n 50000��������ʹ�Է������IJ���������һ���̶�����ʱ�����ڡ�Ĭ��ʱ��û��ʱ�����ơ�
-p postfile File containing data to POST
//��������ҪPOST�����ݵ��ļ�.
-T content-type Content-type header for POSTing
//POST������ʹ�õ�Content-typeͷ��Ϣ��
-v verbosity How much troubleshooting info to print
//������ʾ��Ϣ����ϸ�̶� - 4������ֵ����ʾͷ��Ϣ�� 3������ֵ������ʾ��Ӧ����(404, 200��), 2������ֵ������ʾ������������Ϣ�� -V ��ʾ�汾�Ų��˳���
-w Print out results in HTML tables
//��HTML���ĸ�ʽ����������Ĭ��ʱ�����ǰ�ɫ���������п��ȵ�һ�ű���
-i Use HEAD instead of GET
// ִ��HEAD��������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)
//-C cookie-name=value ������һ��Cookie:�С� ��������ʽ��name=value��һ�������ԡ��˲��������ظ���
-H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip' Inserted after all normal header lines. (repeatable)
-A 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.
//-P proxy-auth-username:password ��һ����ת�����ṩBASIC��֤���Ρ��û�����������һ��:����������base64������ʽ���͡����۷������Ƿ���Ҫ(��, �Ƿ�������401��֤��������)�����ַ������ᱻ���͡�
-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.
-g filename Output collected data to gnuplot format file.
-e filename Output CSV file with percentages served
-h Display usage information (this message)
//-attributes ���� ���Ե��ַ���. ȱ�ݳ������и��־�̬�����Ĺ̶����ȵĻ����������⣬�������в���������������Ӧͷ�������ⲿ�����Ľ���Ҳ�ܼ������ܻ��в�����������û��������ʵ��HTTP/1.x; ������ijЩ'Ԥ��'����Ӧ��ʽ�� strstr(3)��Ƶ��ʹ�ÿ��ܻ������������⣬��, ���������ڲ���ab�����Ƿ����������ܡ�
�����ܶ�,һ�������� -c �� -n �����Ϳ�����. ����:
./ab -c 1000 -n 1000 http://127.0.0.1/index.php
������ʾͬʱ����1000������������1000��index.php�ļ�.
#/usr/local/xiaobai/apache2054/bin/ab -c 1000 -n 1000 http://127.0.0.1/index.html.zh-cn.gb2312
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software: Apache/2.0.54
//ƽ̨apache �汾2.0.54
Server Hostname: 127.0.0.1
//������������
Server Port: 80
//�������˿�
Document Path: /index.html.zh-cn.gb2312
//���Ե�ҳ���ĵ�
Document Length: 1018 bytes
//�ĵ���С
Concurrency Level: 1000
//������
Time taken for tests: 8.188731 seconds
//�������Գ�����ʱ��
Complete requests: 1000
//���ɵ���������
Failed requests: 0
//ʧ�ܵ���������
Write errors: 0
Total transferred: 1361581 bytes
//���������е����紫����
HTML transferred: 1055666 bytes
//���������е�HTML���ݴ�����
Requests per second: 122.12 [#/sec] (mean)
//���������ĵ�ָ��֮һ���൱�� LR �е� ÿ�������� �����������е� mean ��ʾ����һ��ƽ��ֵ
Time per request: 8188.731 [ms] (mean)
//���������ĵ�ָ��֮�����൱�� LR �е� ƽ��������Ӧʱ�� �����������е� mean ��ʾ����һ��ƽ��ֵ
Time per request: 8.189 [ms] (mean, across all concurrent requests)
//ÿ������ʵ������ʱ����ƽ��ֵ
Transfer rate: 162.30 [Kbytes/sec] received
//ƽ��ÿ�������ϵ��������������ų��Ƿ�����������������������Ӧʱ���ӳ�������
Connection Times (ms)
min mean[+/-sd] median max
Connect: 4 646 1078.7 89 3291
Processing: 165 992 493.1 938 4712
Waiting: 118 934 480.6 882 4554
Total: 813 1638 1338.9 1093 7785
//���������ĵ�ʱ���ķֽ⣬�������ݵľ����㷨�����Ǻ�����
Percentage of the requests served within a certain time (ms)
50% 1093
66% 1247
75% 1373
80% 1493
90% 4061
95% 4398
98% 5608
99% 7368
100% 7785 (longest request)
//����������������������Ӧ�������ڳ�����ÿ����������һ����Ӧʱ�䣬����50�����û���Ӧʱ��С��1093 ���룬60�� ���û���Ӧʱ��С��1247 ���룬��������Ӧʱ��С��7785 ����
���ڶ��ڲ���������cpuʵ���ϲ�����ͬʱ�����ģ����ǰ���ÿ���������õ�ʱ��Ƭ������ת�����ģ����Ի����ϵ�һ��Time per requestʱ��Լ���ڵڶ���Time per requestʱ�����Բ���������
ps����ʵ��ֹ��apache������tomcatҲ�ǿ��Եġ�����Ϊ������һ����
- ת����ע����Դ��ITѧϰ�� ��ַ��http://www.t086.com/ �����������Ƽ�������
- �ر������� ��վ�������ر�������ֹת�ص�ר�������������¿�������ת�أ���������ע��������ԭʼ���ߡ����°�Ȩ������ԭʼ�������С����ڱ���վת�����µĸ��˺���վ�����DZ�ʾ������л�⡣������վת�ص������а�Ȩ��������ϵ���ǣ����ǻᾡ�����Ը�����
- �������е���ɫ
- �������ж�IP��ַ��A��B���C��
- ������ϵ��Ц�� (ʷ����ȫ��
- ��Google���������ŵ���ͨv4.0
- ���ٶ�ͳ��URL��hm������utm�����Ķ�Ӧ��ϵ
- ���������ԡ���װ Windows XP ����ϵͳ��ͼ��ȫ����
- ��ƻ������MACbook Air���ݼ���ȫ
- ��Linux��ʹ��host��dig��nslookup��ѯDNS
- �����Լ���VPS�Google��������
- ��С�ڴ�VPS֮Nginx+PHP-fpm�߸����Ż���ѹ�����Է���
- ������������������̸�����ɶ��ر�
- ��������������ѡʳƷ����2020�ļ��ȵ�Ͷ�ʲ��Ժ���������
- �����ڵ�����֤50���ƴ�50����ָ֤�������Ĺ���
- ����֤50����Щ��Ʊ_��֤50Ȩ����������
- ������300����֤50����֤500��ָ��2019���ڶ��ζ��ڵ���������
- ������300��ֵ/�ɳ�ָ�����Ʒ����������й�ƽ��Ȩ���½�
- ����ָ֤��������֤50��ָ��������
- ����ָ֤��������֤����ָ��������
- ����ָ֤��������֤100ָ��������
- ����ָ֤����������300ָ��������