wai, is it fast!
I've been playing around with the various haskell web frameworks lately. I've played with both snap and yesod but I just couldn't bring myself to plow through all of the documentation, great as it is. I've been taking a shining to to a more minimal approach with just warp and wai. This combination is a little less abstraction driven and a little more bare, which I like. Further, its incredibly fast.
I recently benchmarked a very trivial static page response with snap, wai, nginx and go's own webserving library. the results were roughly as follows:
- nginx: 13k+ responses/sec
- wai/warp: 12.5k responses/sec
- go: 8k responses/sec
- snap: 4k responses/sec
Below is the total code for the wai/warp server.
gistlast update 2012-03-31