用AB进行测试,结果如下(好像是说测试通过,不知是否): ab -c 60 -n 100 http://127.0.0.1/abcs.phpThis 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/Benching 127.0.0.1 (be patient).....done Server Software: Apache/2.0.55 Server Hostname: 127.0.0.1 Server Port: 80Document Path: /adcs.php Document Length: 0 bytesConcurrency Level: 60 Time taken for tests: 0.187500 seconds Complete requests: 100 Failed requests: 0 Write errors: 0 Total transferred: 18500 bytes HTML transferred: 0 bytes Requests per second: 533.33 [#/sec] (mean) Time per request: 112.500 [ms] (mean) Time per request: 1.875 [ms] (mean, across all concurrent requests) Transfer rate: 96.00 [Kbytes/sec] receivedConnection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 0 Processing: 15 76 32.6 93 125 Waiting: 15 75 33.7 93 125 Total: 15 76 32.6 93 125Percentage of the requests served within a certain time (ms) 50% 93 66% 93 75% 109 80% 109 90% 109 95% 109 98% 125 99% 125 100% 125 (longest request)
如果同时提交的话,数据量过大有可能会让Mysql崩溃的!
ab -c 60 -n 100 http://127.0.0.1/abcs.phpThis 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/Benching 127.0.0.1 (be patient).....done
Server Software: Apache/2.0.55
Server Hostname: 127.0.0.1
Server Port: 80Document Path: /adcs.php
Document Length: 0 bytesConcurrency Level: 60
Time taken for tests: 0.187500 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 18500 bytes
HTML transferred: 0 bytes
Requests per second: 533.33 [#/sec] (mean)
Time per request: 112.500 [ms] (mean)
Time per request: 1.875 [ms] (mean, across all concurrent requests)
Transfer rate: 96.00 [Kbytes/sec] receivedConnection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 15 76 32.6 93 125
Waiting: 15 75 33.7 93 125
Total: 15 76 32.6 93 125Percentage of the requests served within a certain time (ms)
50% 93
66% 93
75% 109
80% 109
90% 109
95% 109
98% 125
99% 125
100% 125 (longest request)