Robyn v0.17.0 Released ✨ - Introducing const requests

35 points stealthanthrax

A quick intro:Robyn is is a fast and extensible async python web server with a rust runtime.

It recently released v0.17.0, which introduces a feature called \const requests\\. Const requests eliminates the needs to acquire and release the GIL and makes the response faster than ever.

You can have a look at the release here.

And below are some of the benchmarks:

Performance upgrade

Robyn (6 workers)

➜  ~ oha --no-tui --insecure -c 100 -n 1000000 http://127.0.0.1:5000
Summary:
  Success rate:\t1.0000
  Total:\t1.9902 secs
  Slowest:\t0.0477 secs
  Fastest:\t0.0000 secs
  Average:\t0.0002 secs
  Requests/sec:\t502470.8499

FastAPI

➜  ~ oha --no-tui --insecure -c 100 -n 1000000 http://127.0.0.1:5001
Summary:
  Success rate:\t1.0000
  Total:\t12.2921 secs
  Slowest:\t0.0471 secs
  Fastest:\t0.0001 secs
  Average:\t0.0012 secs
  Requests/sec:\t81353.0018

Starlette (24 workers)

➜  ~ oha --no-tui --insecure -c 100 -n 1000000 http://127.0.0.1:5003
Summary:
  Success rate:\t1.0000
  Total:\t9.8807 secs
  Slowest:\t0.0534 secs
  Fastest:\t0.0001 secs
  Average:\t0.0010 secs
  Requests/sec:\t101207.5486

Flask (Bjoern)

➜  ~ oha --no-tui --insecure -c 100 -n 1000000 http://127.0.0.1:5000
Summary:
  Success rate:\t1.0000
  Total:\t113.6806 secs
  Slowest:\t0.1515 secs
  Fastest:\t0.0021 secs
  Average:\t0.0114 secs
  Requests/sec:\t8796.5722

Let me know what you folks think of this.

And below are some of important links:

Robyn Repo: https://github.com/sansyrox/robyn/tree/main
Benchmark Source: https://github.com/sansyrox/robyn-comparrison-benchmarks
Release v0.17.0: https://github.com/sansyrox/robyn/releases/tag/v0.17.0