赞
踩
1.Postman
2.Apache Bench
2.1.使用cmd界面进入AB的bin目录下
C:\WINDOWS\system32>cd /d D:\XXX\Apache24\bin
2.2.输入命令
D:\XXX\Apache24\bin>ab.exe -n 1000 -c 50 http://;localhost:8080/test
-n请求的次数,-c 并发数
2.3.具体的内容
//apache版本信息
Benchmarking www.baidu.com (be patient).....done
Server Software: BWS/1.1
//请求返回header类型,可能是nginx、apache、IIs等
Server Hostname: www.baidu.com
//请求ip或者域名
Server Port: 443
//请求端口,当前请求为https所以端口为443,请求https端口80
SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128
//https端口协议
TLS Server Name: www.baidu.com
Document Path: /
//路径
Document Length: 227 bytes
//第一个成功返回的文档的字节大小
Concurrency Level: 10
//并发数!!!
Time taken for tests: 1.034 seconds
//从建立连接到最后接受完成总时间</
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。