httpstat: url api 接口性能分析
创始人
2025-05-28 21:10:49

在任何需要分析网站速度在每个阶段耗时的场景下,通过抓包分析报文的方式太繁杂,httpstat可视化将每个阶段耗时统计出来。

httpstat通过封装curl命令,将整个连接过程每个阶段耗时可视化统计出来,就如README所述:"httpstat visualizes curl(1) statistics in a way of beauty and clarity。"

golang 版

davecheney/httpstat: It's like curl -v, with colours. (github.com)

命令参数:

C:\Users\ZMI\go\pkg\mod\github.com\davecheney\httpstat@v1.1.0>httpstat.exe

Usage: httpstat.exe [OPTIONS] URL

OPTIONS:

-4 resolve IPv4 addresses only

-6 resolve IPv6 addresses only

-E string

client cert file for tls config

-H value

set HTTP header; repeatable: -H 'Accept: ...' -H 'Range: ...'

-I don't read body of request

-L follow 30x redirects

-O save body as remote filename

-X string

HTTP method to use (default "GET")

-d string

the body of a POST or PUT request; from file use @filename

-k allow insecure SSL connections

-o string

output file for body

-v print version number

ENVIRONMENT:

HTTP_PROXY proxy for HTTP requests; complete URL or HOST[:PORT]

used for HTTPS requests if HTTPS_PROXY undefined

HTTPS_PROXY proxy for HTTPS requests; complete URL or HOST[:PORT]

NO_PROXY comma-separated list of hosts to exclude from proxy

测试某个api 接口:接口采用post 方式,post 的bady参数放在了a.txt 文件中:

httpstat.exe -X POST -d @a.txt http://10.1xx.1xx.2x1:8050/api/Account/GetAppointmentInfo

分析下访问百度的性能:

httpstat.exe www.baidu.com


下载地址:

golang版linuxwindowshttpstathttpurlapi性能分析工具-Javascript文档类资源-CSDN文库

相关内容

热门资讯

科普一下“欢乐游确实是有挂.”... 您好:【欢乐游】这款游戏可以开挂,确实是有挂的,需要了解加客服微信【3636476】很多玩家在这款游...
【必看教程】“湖北休闲有挂吗”... 亲:湖北休闲这款游戏是可以开挂的,确实是有挂的,添加客服【8487422】很多玩家在这款游戏中怀疑是...
今日重大通报“新九点麻将可不可... 您好:新九点麻将这款游戏可以开挂,确实是有挂的,需要软件加微信【8700483】,很多玩家在新九点麻...
「实测分享」天天微友棋牌.究竟... 您好:天天微友棋牌这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9784099】很多玩家在这款...
从地图到手机通讯到ChatGP... 写在最前 在今天的科技世界中,API(Application Progr...