curl -w "time_namelookup: "%{time_namelookup}"\ntime_connect: "%{time_connect}"\ntime_appconnect: "%{time_appconnect}"\ntime_pretransfer: "%{time_pretransfer}"\ntime_starttransfer: "%{time_starttransfer}"\ntime_redirect: "%{time_redirect}"\ntime_total: "%{time_total} -H "Content-Type:application/json" -X POST -d '{}' "http://localhost:8848/"
curl 接口耗时命令
-W 后面跟着格式化模板和参数
-H 请求头
-X 请求方式
-d 请求体
date +"%T.%3N"
linux 毫秒级当前时间