3 ms·
The TechEmpower benchmarks should be taken with a grain of salt because, in the specific case of Python, and last year at least, they didn't seem to take into a
by rcarmo 10y ago
The TechEmpower benchmarks should be taken with a grain of salt because, in the specific case of Python, and last year at least, they didn't seem to take into account real-life deployments (i.e., they're benchmarking raw scripts instead of a WSGI app running inside gunicorn or uwsgi, either of which has its own threading model and performance improvements).
However, Go and Java will handily beat Python any day, even with uvloop -- all you need to do is try to do a little more processing inside your HTTP handler, aaaaannnnddd thiiiingggsss willl sloooowww dooooowwwwnnnn....
- tomnipotent 10y ago>> they're benchmarking raw scripts TechEmpower uses gunicorn/nginx [1] for Python frameworks, and has since 2014. >> all you need to do is try to do a little more processing inside your HTTP handler Unless you're working with an external service like a relational database, in which case performance between Go/Java and Python will be comparable [2]. If you don't need to leave your process, Go/Java will flatten Python. [1] https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/frameworks/Python/flask https://github.com/TechEmpower/FrameworkBenchmarks/tree/mast... [2] https://www.techempower.com/benchmarks/#section=data-r13&hw=ph&test=query&l=4ft3sv https://www.techempower.com/benchmarks/#section=data-r13&hw=...