How to do load testing on long polling?

I'm trying to figure out how to do load testing on a long polling or web socket type of architecture. I need to setup multiple clients which subscribe to channels on one side and wait for responses. The load testing should measure the time it took for messages from the publishing server to reach the clients.

Any ideas?

Answers


As said here,

SignalR uses a particular protocol to communicate so it's best that you use our tool to generate load for testing your server(s).

So, SignalR comes with Crank. Crank can only connect to PersistentConnection based apps and not Hub based app.

This another answer could help you for Hub based app.


You can use crank, as referred above. One of the parameters is Transport, so you can specify only LongPolling:

crank.exe /Url:http://someUri /Transport:LongPolling

Use JMeter (https://jmeter.apache.org/) and flood with http connections with transport-type as header.


Need Your Help

Modify DataFrame passed as argument

python pandas

I have a timeseries DataFrame (df) to which i need to add an column, and then pass this df to a function that modifies the content of a time slice of a single column.