我正在尝试使用名为 K6(免费和开源负载测试工具)的工具运行性能测试,我的测试即将测试网站性能,当我运行测试时,我得到了这个:
WARN[0029] Request Failed
error="Get https://i.ytimg.com/vi/xtee7r5-ztY/hqdefault.jpg?
sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLBlViQFOGYBjH0iGMUyeyWwj0CRHQ:
read tcp 10.61.19.91:27672->172.217.19.86:443: wsarecv: A connection attempt failed because
the connected party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond."
WARpanic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x30 pc=0xa48c2c]
可以使用以下命令在命令行上运行测试:
k6 运行 --out influxdb= http://localhost:8086/VideoRecord_DB D:\Applications\K6-Scripts\VideoRecording.js`
这是k6版本:
C:\Users\diz>k6 version
k6 v0.26.1(开发版本,go1.13,windows/amd64)