Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
11–20 of 192 posts
Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
#12If you're a web developer, trying to pick a framework for websockets, you probably don't care that the Python framework is a libuv wrapper, while to Go framework is native.
So well done, I guess? I am really happy to see library authors taking performance seriously!
EDIT: This is assuming the benchmark is actually fair. I haven't looked at it, but it's not uncommon for benchmarks to be comparing apples and oranges.
Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
#13Just as a piece of evidence, there are interpreted C++ (http://www.artificialworlds.net/wiki/IGCC/IGCC) and AOT Python (https://github.com/exaloop/codon) implementations.
Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
#14Earlier quoted context omitted.
Would a framework like uvicorn/fastapi be able to achieve similar performance if it were backed by libuv (as opposed to e.g. asyncio)?
Pydantic is unreasonably slow for big datastructures, though. For simple performance tests with simple requests/response it's probably fast. But with lots of the data marshalling happening in python some things are really slow in real life use cases.
Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
#15Others point out that calling it a Python framework might be disingenuous, but only if your goal is to compare programming languages. If you're a web developer, trying to pick a framework for websockets, you probably don't care that the Python framework is a libuv wrapper, while to Go framework is native. So well done, I guess? I am really happy to see library authors taking performance seriously! EDIT: This is assum…
Web developer dont care if the framework is written in native or it is an wrapper, developers just want something that works in a nice way :D
The benchmarks are in https://github.com/TechEmpower/FrameworkBenchmarks
EDIT: some preliminary results https://www.techempower.com/benchmarks/#section=test&runid=1...
Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
#16I would assume this is same case where - what ever Socketify is based on (pythons transport layer), is compared to FastHTTP. and mention of Fiber is click-bate.
Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
#17Fiber is built on FastHTTP. If you know Go top "frameworks" performance characteristics then you would know that you are actually comparing HTTP implementations - ala whether framework is based on FastHTTP or Go standard library HTTP implementation. Framework own % there is for the top 5 almost non-existent. I would assume this is same case where - what ever Socketify is based on (pythons transport layer), is compare…
The benchmarks are TechEmPower plaintext https://github.com/TechEmpower/FrameworkBenchmarks
preliminary results here: https://www.techempower.com/benchmarks/#section=test&runid=1...
Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
#18Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
#19Others point out that calling it a Python framework might be disingenuous, but only if your goal is to compare programming languages. If you're a web developer, trying to pick a framework for websockets, you probably don't care that the Python framework is a libuv wrapper, while to Go framework is native. So well done, I guess? I am really happy to see library authors taking performance seriously! EDIT: This is assum…
Python framework because is an framework for python, like most performance focused frameworks for python, this uses a lot of native code. uvicorn uses uvloop that is an wrapper for libuv. Web developer dont care if the framework is written in native or it is an wrapper, developers just want something that works in a nice way :D The benchmarks are in https://github.com/TechEmpower/FrameworkBenchmarks EDIT: some prelim…
So the concern is the title you used to get to the front page not the actual implementation.
Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3
#20Earlier quoted context omitted.
You can see the preliminaries results here https://www.techempower.com/benchmarks/#section=test&runid=1...
Why do you think the Fortunes results are not that competitive? I would have expected the python pg drivers to be very mature.