Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A screamingly fast Python WSGI server written in C.
C Python Makefile Other
Tag: 1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bjoern
http-parser @ 047ced3
tests
.gitignore
.gitmodules
KNOWN_ISSUES
LICENSE
Makefile
README.rst
TODO
setup.py

README.rst

bjoern: Fast And Ultra Lightweight Asynchronous WSGI Server

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 800 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)

But what about...

Fapws3?

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".

gunicorn?

bjoern is about 5 times faster. Plus gunicorn is too much bloated.

uWSGI?

Awesome project, but way too much bloat.

meinheld?

Unfortunately now bloated with gunicorn and coroutine/greenlet crap, seemed to be a very nice server at first.

$SERVER?

Probably too much bloat, too slow, does not scale, buggy, ...

Something went wrong with that request. Please try again.