sparckles / Robyn

Robyn is a Super Fast Async Python Web Framework with a Rust runtime.
https://robyn.tech/
BSD 2-Clause "Simplified" License
4.47k stars 231 forks source link

Benchmark code source #125

Open Kludex opened 2 years ago

Kludex commented 2 years ago

Hi @sansyrox :wave:

Just found your project today. :)

Do you perhaps have the source code you used for the benchmark? It would be cool to have that reference on the https://sansyrox.github.io/robyn/#/comparison page.

sansyrox commented 2 years ago

Hi @Kludex ,

Firstly, welcome here :D

Yes, that's a great idea. I will add it on the comparison page itself.

Also, if you don't mind me asking how did you find the project? 😅

Kludex commented 2 years ago

Well... I was talking to a person in a bar, and the person told me about a project that was implementing an ASGI server in Rust and binding it to Python. The name of the project was not mentioned, so I'm not sure if I found the right one (as ASGI is not supported yet) hahaha

sansyrox commented 2 years ago

I was talking to a person in a bar, and the person told me about a project that was implementing an ASGI server in Rust and binding it to Python.

Wow. This is definitely the first time.

But maybe you came looking for copper but struck gold? xD (J.K.)

Thanks for your contributions and suggestions tho :D

Kludex commented 2 years ago

Without the benchmark code source, it's really hard to believe on those numbers.

sansyrox commented 2 years ago

@Kludex , here is the benchmark repo I use: https://github.com/sansyrox/robyn-comparrison-benchmarks

sansyrox commented 2 years ago

The stats in the readme are a little old. But the methods I use to benchmark are the same.

crypt0miester commented 2 years ago

would love to see comparisons with blacksheep as well.

https://github.com/Neoteroi/BlackSheep/

sansyrox commented 2 years ago

Thanks @crypt0miester .

Would it be possible for you to add a hello world example here?

https://github.com/sansyrox/robyn-comparrison-benchmarks

crypt0miester commented 2 years ago

Thanks @crypt0miester .

Would it be possible for you to add a hello world example here?

https://github.com/sansyrox/robyn-comparrison-benchmarks

interesting, I got 40% of robyn. I couldn't add due to not enough time. will add it when I have some free time.

cheers. and good luck mate.