ntex icon indicating copy to clipboard operation
ntex copied to clipboard

Websocket benchmark

Open rocinant3 opened this issue 1 year ago • 1 comments
trafficstars

First of all, I want to thank you for work on one of the best rust framework. I'm currently looking for a suitable tool to implement live view (HTML over websocket). I'm interested in the performance of ntex websockets. It would be great to see a performance comparison with other crates, example: https://github.com/nurmohammed840/web-socket-benchmark.

rocinant3 avatar Dec 01 '23 13:12 rocinant3

I would not worry about ntex performance. While this site isn't measuring websockets specifically, it is measuring http requests https://www.techempower.com/benchmarks/#hw=ph&test=plaintext&section=data-r22

With that ntex is quite high up performance wise. Definitely in the top 10, depending on which runtime you use. I'm guessing the websocket offering are at least high up in performance too.

In other terms, ntex isn't likely going to be your bottleneck.

That being said, i too am curious how it stacks up against current high performance websocket stacks (like uwebsockets).

markg85 avatar Jun 16 '24 23:06 markg85

i dont have time for benchmarks. if anyone wants to provide impl, welcome

fafhrd91 avatar Jul 23 '25 14:07 fafhrd91