我尝试使用Jmeter和以下websocket插件(https://github.com/maciejzaleski/JMeter-WebSocketSampler)对socket.io 1.3.5进行基准测试。
在Jmeter中实现socket.io协议以模拟我在google开发工具中看到的相同连接步骤时,我在某些帧之间有20秒的延迟。拜托,您能否给我一些建议,让它正常工作并消除这种延迟?谢谢!!
在Jmeter中:
- HTTP REQUEST [GET] socket.io/?EIO=3&transport=polling&t=$ {timestamp} HTTP
- HTTP REQUEST [GET] socket.io/?EIO=3&transport=polling&t=${timestamp}&sid=${sessionid} HTTP
- WEBSOCKET REQUEST socket.io/?EIO=3&transport=websocket&t=${timestamp}&sid=${sessionid} WS
请求数据:2probe
- WEBSOCKET REQUEST socket.io/?EIO=3&transport=websocket&sid=${sessionid}
请求数据:5
- WEBSOCKET REQUEST socket.io/?EIO=3&transport=websocket&sid=${sessionid}
请求数据:42 [" auth"," test"," test"," test"]
醇>
在Node socket.io debug中:
截图 - > http://postimg.org/image/5p08vszv3/