AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
#### vegeta attack -duration=20s -header="sleep:100" -targets="target.txt" -rate=2000 | tee reports.bin | vegeta report ``` Requests [total, rate] 40000, 1997.35 Duration [total, attack, wait] 50.030852846s, 20.02655077s, 30.004302076s Latencies [mean, 50, 95, 99, max] 637.239637ms, 108.651219ms, 1.763080277s, 5.004631882s, 30.021048846s Bytes In [total, mean] 555473, 13.89 Bytes Out [total, mean] 0, 0.00 Success [ratio] 99.03% Status Codes [code:count] 200:39611 500:210 0:179 Error Set: 500 Internal Server Error Get http://192.168.116.135/index.html: net/http: timeout awaiting response headers ``` 后端服务器连接情况 ``` [root@linux-node02 html]# ss -s && free -g Total: 1316 (kernel 1337) TCP: 981 (estab 965, closed 11, orphaned 0, synrecv 0, timewait 9/0), ports 0 Transport Total IP IPv6 * 1337 - - RAW 0 0 0 UDP 3 2 1 TCP 970 968 2 INET 973 970 3 FRAG 0 0 0 ``` #### vegeta attack -duration=20s -header="sleep:1000" -targets="target.txt" -rate=2000 | tee reports.bin | vegeta report ``` Requests [total, rate] 40000, 2000.05 Duration [total, attack, wait] 1m2.380685378s, 19.999499807s, 42.381185571s Latencies [mean, 50, 95, 99, max] 1.189264229s, 136.53801ms, 3.465240229s, 21.468336674s, 45.978479699s Bytes In [total, mean] 613017, 15.33 Bytes Out [total, mean] 0, 0.00 Success [ratio] 98.62% Status Codes [code:count] 200:39450 500:519 0:31 Error Set: 500 Internal Server Error Get http://192.168.116.135/index.html: net/http: timeout awaiting response headers ``` ![](https://box.kancloud.cn/44be965cd4937bcd6e83a009b4bd4289_363x112.png) #### vegeta attack -duration=10s -targets="target.txt" -rate=1000 | tee reports.bin | vegeta report ``` Requests [total, rate] 10000, 999.63 Duration [total, attack, wait] 10.021559378s, 10.003709061s, 17.850317ms Latencies [mean, 50, 95, 99, max] 18.471916ms, 6.317113ms, 85.188337ms, 146.689213ms, 295.299117ms Bytes In [total, mean] 130000, 13.00 Bytes Out [total, mean] 0, 0.00 Success [ratio] 100.00% Status Codes [code:count] 200:10000 Error Set: ``` #### vegeta attack -duration=30s -targets="target.txt" -rate=1000 | tee reports.bin | vegeta report ``` Requests [total, rate] 30000, 999.80 Duration [total, attack, wait] 30.050709966s, 30.006052619s, 44.657347ms Latencies [mean, 50, 95, 99, max] 35.309308ms, 26.008565ms, 99.026083ms, 169.574976ms, 1.031643432s Bytes In [total, mean] 390000, 13.00 Bytes Out [total, mean] 0, 0.00 Success [ratio] 100.00% Status Codes [code:count] 200:30000 Error Set: ``` #### vegeta attack -duration=1m -targets="target.txt" -rate=1000 | tee reports.bin | vegeta report ``` Requests [total, rate] 60000, 1000.01 Duration [total, attack, wait] 1m30.003182985s, 59.999448806s, 30.003734179s Latencies [mean, 50, 95, 99, max] 2.555849665s, 19.000022ms, 30.001044704s, 30.007683515s, 30.213519172s Bytes In [total, mean] 721604, 12.03 Bytes Out [total, mean] 0, 0.00 Success [ratio] 92.51% Status Codes [code:count] 200:55508 0:4492 Error Set: Get http://192.168.116.135/index.html: net/http: timeout awaiting response headers ``` #### vegeta attack -duration=1m -targets="target.txt" -rate=1000 | tee reports.bin | vegeta report ``` Requests [total, rate] 60000, 1000.00 Duration [total, attack, wait] 1m0.005537175s, 59.999854365s, 5.68281ms Latencies [mean, 50, 95, 99, max] 30.515232ms, 22.950321ms, 92.570881ms, 134.098819ms, 309.083857ms Bytes In [total, mean] 780000, 13.00 Bytes Out [total, mean] 0, 0.00 Success [ratio] 100.00% Status Codes [code:count] 200:60000 Error Set: ``` nginx ``` vegeta attack -duration=10s -targets="target.txt" -rate=1000 | tee reports.bin | vegeta report Requests [total, rate] 10000, 1000.10 Duration [total, attack, wait] 10.006546688s, 9.998999804s, 7.546884ms Latencies [mean, 50, 95, 99, max] 7.470748ms, 6.593233ms, 12.452358ms, 33.36419ms, 67.69677ms Bytes In [total, mean] 130000, 13.00 Bytes Out [total, mean] 0, 0.00 Success [ratio] 100.00% Status Codes [code:count] 200:10000 Error Set: ``` ``` vegeta attack -duration=10s -targets="target.txt" -rate=1000 | tee reports.bin | vegeta report Requests [total, rate] 10000, 1000.10 Duration [total, attack, wait] 10.012366435s, 9.998999819s, 13.366616ms Latencies [mean, 50, 95, 99, max] 8.376953ms, 6.896793ms, 18.247404ms, 37.680474ms, 76.137981ms Bytes In [total, mean] 130000, 13.00 Bytes Out [total, mean] 0, 0.00 Success [ratio] 100.00% Status Codes [code:count] 200:10000 Error Set: ``` ``` #### vegeta attack -duration=1m -targets="target.txt" -rate=1000 | tee reports.bin | vegeta report Requests [total, rate] 60000, 680.83 Duration [total, attack, wait] 3m47.168376112s, 1m28.127504385s, 2m19.040871727s Latencies [mean, 50, 95, 99, max] 33.896742179s, 123.558183ms, 2m40.120521924s, 2m53.196673907s, 3m8.920936606s Bytes In [total, mean] 397709, 6.63 Bytes Out [total, mean] 0, 0.00 Success [ratio] 50.99% Status Codes [code:count] 200:30593 0:29407 Error Set: ``` ``` vegeta attack -duration=1m -targets="target.txt" -rate=1000 | tee reports.bin | vegeta report Requests [total, rate] 60000, 1000.02 Duration [total, attack, wait] 1m19.785880433s, 59.998999818s, 19.786880615s Latencies [mean, 50, 95, 99, max] 776.247501ms, 3.899453ms, 48.60375ms, 30.001751954s, 30.049587133s Bytes In [total, mean] 391846, 6.53 Bytes Out [total, mean] 0, 0.00 Success [ratio] 50.24% Status Codes [code:count] 200:30142 0:29858 ``` ``` vegeta attack -duration=1m -targets="target.txt" -rate=1000 | tee reports.bin | vegeta report Requests [total, rate] 60000, 1000.02 Duration [total, attack, wait] 1m23.46944647s, 59.998999631s, 23.470446839s Latencies [mean, 50, 95, 99, max] 790.46317ms, 5.888841ms, 97.959092ms, 30.001720164s, 30.18105478s Bytes In [total, mean] 397540, 6.63 Bytes Out [total, mean] 0, 0.00 Success [ratio] 50.97% Status Codes [code:count] 200:30580 0:29420 ``` ``` vegeta attack -duration=10s -targets="target.txt" -rate=1000 | tee reports.bin | vegeta report Requests [total, rate] 10000, 1000.10 Duration [total, attack, wait] 10.005974908s, 9.998999854s, 6.975054ms Latencies [mean, 50, 95, 99, max] 7.067076ms, 6.262445ms, 11.944133ms, 23.43692ms, 89.903413ms Bytes In [total, mean] 130000, 13.00 Bytes Out [total, mean] 0, 0.00 Success [ratio] 100.00% Status Codes [code:count] 200:10000 ``` ``` vegeta attack -duration=20s -header="sleep:1000" -targets="target.txt" -rate=2000 | tee reports.bin | vegeta report Requests [total, rate] 40000, 2000.05 Duration [total, attack, wait] 49.95931582s, 19.999499741s, 29.959816079s Latencies [mean, 50, 95, 99, max] 1.168157172s, 10.345145ms, 100.000368ms, 30.002535044s, 30.070263301s Bytes In [total, mean] 261508, 6.54 Bytes Out [total, mean] 0, 0.00 Success [ratio] 50.29% Status Codes [code:count] 200:20116 0:19884 ``` ``` vegeta attack -duration=20s -header="sleep:1000" -targets="target.txt" -rate=2000 | tee reports.bin | vegeta report Requests [total, rate] 40000, 2000.05 Duration [total, attack, wait] 49.992266753s, 19.999499816s, 29.992766937s Latencies [mean, 50, 95, 99, max] 847.886184ms, 11.518084ms, 201.602984ms, 30.001824829s, 30.066640278s Bytes In [total, mean] 402090, 10.05 Bytes Out [total, mean] 0, 0.00 Success [ratio] 77.33% Status Codes [code:count] 200:30930 0:9070 ``` ``` vegeta attack -duration=20s -header="sleep:100" -targets="target.txt" -rate=2000 | tee reports.bin | vegeta report Requests [total, rate] 40000, 2000.05 Duration [total, attack, wait] 50.001324335s, 19.999499767s, 30.001824568s Latencies [mean, 50, 95, 99, max] 914.650593ms, 8.257535ms, 81.969919ms, 30.003532108s, 30.063161033s Bytes In [total, mean] 391053, 9.78 Bytes Out [total, mean] 0, 0.00 Success [ratio] 75.20% Status Codes [code:count] 200:30081 0:9919 ```