News for hackers. Stuff that matters.
Re:Show HN: Python framework is faster than Golang Fiber by FpUser on Tuesday January 10, 2023 @07:43AM (#34323974)
I looked at the tests. There is nothing significant going on when creating response in http server for example. Just spit "hello world". So it appears to be a test of C++ uWebSockets and uSockets libraries vs for example native Go implementation. Do something serious in request handler using Python and then see what happens.
Re:Show HN: Python framework is faster than Golang Fiber by cirospaciari on Tuesday January 10, 2023 @07:53AM (#34324083)
Actually uWebSockets and uSockets will perform better than this (2x at least in my local tests), I need to do a lot of copying, instancing and crossing Python GIL.

Yeah this test basically shows that Python backed by uWS is crazy fast, but is not an direct comparison to uWS to Go.

This test is just an troughput test, with is very useful to measure raw performance.

More tools like caching tools, a better database client etc is need to construct an complete scenario, and i'm working on it! (Maybe in 1 week or 2 weeks will be done)

https://github.com/TechEmpower/FrameworkBenchmarks

https://www.techempower.com/benchmarks/#section=test&runid=1...

Re:Show HN: Python framework is faster than Golang Fiber by FpUser on Tuesday January 10, 2023 @08:08AM (#34324258)
>"Python backed by uWS is crazy fast, but is not an direct comparison to uWS to Go."

Correction. It shows that uWS is crazy fast. Sure if python us used as a thin glue between something like "select username from user" and uWS or send file over uWS then the result is fast. Do something meaningful in Python itself an it will be slow.

This is not to diminish your work. Python is mostly glue anyways so in average the end result should be quite ok

Re:Show HN: Python framework is faster than Golang Fiber by cirospaciari on Tuesday January 10, 2023 @08:33AM (#34324590)
I see your comment as positive <3 the whole purpose of this framework is to offer better glue, to Python for Web
Re:Show HN: Python framework is faster than Golang Fiber by FpUser on Tuesday January 10, 2023 @08:47AM (#34324768)
>"I see your comment as positive"

It is positive. You've created very nice "Web Python". No arguments here.

Re:Show HN: Python framework is faster than Golang Fiber by cirospaciari on Tuesday January 10, 2023 @09:09AM (#34325041)
thank you.