网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事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行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
发表评论