sudo pip install bjoern
A screamingly fast, ultra-lightweight asynchronous WSGI server for CPython, written in C using Marc Lehmann's high performance libev event loop and Ryan Dahl's http_parser.
bjoern aims to be small, lightweight and very fast.
- less than 1000 SLOC (Source Lines Of Code)
- memory footprint smaller than a megabyte
- no threads, coroutines or other crap
- apparently the fastest WSGI server out there
- 100% WSGI compliant (except for the write callback design mistake)
bjoern.run(wsgi_application, host, port) # alternatively, the mainloop can be run separately: bjoern.listen(wsgi_application, host, port) bjoern.run()
Sucks. Really, the code is an incredible mess. It likes to segfault.
I tried to patch Fapws so that it would support threading, but after about two hours of brain slime feeling, I decided to write my own WSGI server -- "Fapws done right".
bjoern is about 5 times faster. Plus gunicorn is too much bloated.
Awesome project, but way too much bloat.
Unfortunately now bloated with gunicorn and coroutine/greenlet crap, seemed to be a very nice server at first.
Probably too much bloat, too slow, does not scale, buggy, ...