What is a faster alternative to Python’s http.server (or SimpleHTTPServer)?

Python’s http.server (or SimpleHTTPServer for Python 2) is a great way of serve the contents of the current directory from the command line:

python -m http.server

However, as far as web servers go, it’s very slooooow…

It behaves as though it’s single threaded, and occasionally causes timeout errors when loading JavaScript AMD modules using RequireJS. It can take five to ten seconds to load a simple page with no images.

What’s a faster alternative that is just as convenient?

13 Answers
13

Leave a Comment