标签:class ros path htm 分享图片 apache2.4 host alt 服务器
1. PostMan
2. Apache Bench(AB)
首先安装Apache服务器
我这里已经安装wamp环境,已经包括Apache了
-n 请求数量
-c 并发的数量
D:\wamp64\bin\apache\apache2.4.23\bin>ab -n 1000 -c 50 localhost:8080/concurrency/test This is ApacheBench, Version 2.3 <$Revision: 1748469 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Completed 400 requests Completed 500 requests Completed 600 requests Completed 700 requests Completed 800 requests Completed 900 requests Completed 1000 requests Finished 1000 requests Server Software: Server Hostname: localhost Server Port: 8080 Document Path: /concurrency/test Document Length: 4 bytes Concurrency Level: 50 Time taken for tests: 0.330 seconds Complete requests: 1000 Failed requests: 0 Total transferred: 136000 bytes HTML transferred: 4000 bytes Requests per second: 3028.16 [#/sec] (mean) Time per request: 16.512 [ms] (mean) Time per request: 0.330 [ms] (mean, across all concurrent requests) Transfer rate: 402.18 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.3 0 9 Processing: 5 16 9.1 14 100 Waiting: 4 15 8.8 14 96 Total: 5 16 9.0 15 100 Percentage of the requests served within a certain time (ms) 50% 15 66% 16 75% 18 80% 19 90% 23 95% 29 98% 44 99% 52 100% 100 (longest request)
标签:class ros path htm 分享图片 apache2.4 host alt 服务器
原文地址:https://www.cnblogs.com/linlf03/p/9347984.html