网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
Completed 35000 requests
Completed 40000 requests
Completed 45000 requests
Completed 50000 requests
Finished 50000 requests
Server Software: Apache-Coyote/1.1
Server Hostname: 127.0.0.1
Server Port: 8090
Document Path: /login.action?username=0
Document Length: 49 bytes
Concurrency Level: 1200
Time taken for tests: 6.310 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 7595451 bytes
HTML transferred: 2464749 bytes
Requests per second: 7924.43 [#/sec] (mean)
Time per request: 151.430 [ms] (mean)
Time per request: 0.126 [ms] (mean, across all concurrent requests)
Transfer rate: 1175.58 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 76 142.3 57 1061
Processing: 14 72 21.8 72 267
Waiting: 1 54 18.4 53 252
Total: 36 148 145.7 133 1186
Percentage of the requests served within a certain time (ms)
50% 133
66% 144
75% 150
80% 153
90% 162
95% 172
98% 1087
99% 1127
100% 1186 (longest request)
ab -c 1200 -t 60 http://localhost:8090/login.action?username=0&password=e10adc3949ba59abbe56e057f20f883e
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3.参数解析
-n 1000:请求总数为1000(和-t同时出现时无效)
-c 100:并发总数为100
http://localhost:8090/login.action?username=0&password=e10adc3949ba59abbe56e057f20f883e:写请求的目标URL
-t 60:请求时间为60s
ab -c 1200 -t 60 http://localhost:8090/login.action?username=0&password=e10adc3949ba59abbe56e057f20f883e-------1200个并发用户执行60s
ab -n 7500000 -c 1200 http://localhost:8090/login.action?username=0&password=e10adc3949ba59abbe56e057f20f883e-------1200个并发用户发起7500000次请求(约并发十分钟)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4.测试结果解析
1)Concurrency Level :并发用户数(我们设置的参数之一)
2)Time taken for tests :所有这些请求被处理完成所花费的总时间
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
.csdn.net/forums/4f45ff00ff254613a03fab5e56a57acb)**
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!