Percentage of the requests served within a certain time (ms)
50% 12921
66% 13203
75% 13453
80% 13546
90% 13781
95% 14156
98% 14750
99% 18328
100% 30578 (longest request)
以上結果指出,在并發(fā)50個(gè)請求的情況下,完成1000次的訪(fǎng)問(wèn)請求,共花了262.515秒,這個(gè)程序每秒可處理3.81個(gè)請求。
2.4 問(wèn)題
在實(shí)際使用中,我發(fā)現-c 參數,即一次同時(shí)產(chǎn)生的并發(fā)請求個(gè)數最多設置成64,大于等于65就會(huì )報錯,不知道為什么。
3 資料
ab官方網(wǎng)站:http://httpd.apache.org/docs/2.0/programs/ab.html
Apache 2.0手冊中文版翻譯項目ab部分:https://support.iap.ac.cn/net/ApacheManual/zh-cn/programs/ab.html
文章來(lái)源于領(lǐng)測軟件測試網(wǎng) http://kjueaiud.com/