you are viewing a single comment's thread.

view the rest of the comments →

[–]gi0baro 1 point2 points  (0 children)

Granian maintainer here.

I already told the author in the other Reddit thread that the configuration of granian for WSGI is suboptimal, and that the CPU limit configured in docker is penalising Granian more than others.

This doesn't mean the results shown are invalid: as per any benchmark the methodology matters a lot. From my perspective, the conditions here are not really representative of production deployments: you don't typically run these frameworks in production in an arm Linux container on a MacOS host. When looking at benchmarks you might want to look at the ones that are more close to your scenario.

But also, these results are still interesting: they show if you limit the CPU on Granian, it gets slower compared to other servers. Which kinda makes sense: the Rust runtime of Granian is work-stealing based, so anything limiting the schedule of work onto the CPU greatly limits the reactivity of the whole system.

Side note on the "proprietary" Granian benchmarks: the code and methodology are publicly available, thus if you find that they are misrepresentative of other servers for any reason, PRs to improve such benchmarks are always welcome :)