Apache自帶的壓力測試工具ab.exe簡單介紹

       Apache的bin目錄下有個ab.exe,是自帶壓力測試工具,簡單介紹下併發

 使用:在控制檯打開Apache的bin目錄,而後使用 ab.exe -n 110 -c 210 http://xxxxxxx 回車ide

 以下圖wKioL1RtoFrCsa6vAALmNJPqRcs944.jpg工具

指令意思: -n (訪問總次數) -c (併發數) http://(目標URL)
測試

比較重要的信息  Concurrency Level:      110   訪問110次
                Time taken for tests:   0.250 seconds  共使用了多少時間(固然是越小越好)  
                Complete requests:      210   210個併發數   
blog

                Requests per second:    840.00 [#/sec] (mean)  每秒完成多少請求(固然是越大越好)            
get

                Time per request:       130.952 [ms] (mean)  用戶平均請求等待時間(固然是越小越好)      
requests

相關文章
相關標籤/搜索