ntex-rs / ntex

framework for composable networking services
Apache License 2.0
1.84k stars 105 forks source link

Websocket benchmark #260

Open rocinant3 opened 6 months ago

rocinant3 commented 6 months ago

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.

markg85 commented 1 week ago

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).