observing / thor

The WebSocket god of thunder
MIT License
1.29k stars 154 forks source link

Got "NaN" for latency #53

Open Shivakishore14 opened 6 years ago

Shivakishore14 commented 6 years ago

I am trying to test a echo websocket written in java. this is the command that i gave thor --amount 1000 --messages 100 ws://localhost:8085/web-soc/websocketendpoint (the echo websocket server is working fine)

Result

Thor:                                                  version: 1.0.0

God of Thunder, son of Odin and smasher of WebSockets!

Thou shall:
- Spawn 8 workers.
- Create all the concurrent/parallel connections.
- Smash 1000 connections with the mighty Mjölnir.

The answers you seek shall be yours, once I claim what is mine.

Connecting to ws://localhost:8085/web-soc/websocketendpoint

Online               5988 milliseconds
Time taken           5989 milliseconds
Connected            1000
Disconnected         0
Failed               0
Total transferred    333.98kB
Total received       329.1kB

Durations (ms):

                     min     mean     stddev  median max
Handshaking          122     379         257     294 5694
Latency              NaN     NaN         NaN     NaN NaN

Percentile (ms):

                      50%     66%     75%     80%     90%     95%     98%     98%    100%
Handshaking          294     398     491     558     718     775     816     833     5694
Latency              NaN     NaN     NaN     NaN     NaN     NaN     NaN     NaN     NaN

Here latency is NaN, what might be the reason for this issue ?

venukanaparthy commented 6 years ago

I am getting the same issue, Latency is NaN. Downgrading fast-stats to 0.0.1 does not seem to help. Appreciate any help.