4 ms·
Were you using the built in web server? I've been wondering about its performance in real world loads.
by 147 10y ago
Were you using the built in web server? I've been wondering about its performance in real world loads.
- shakna 10y agoOnly partially. I lifted out the MIME functions and some of the threading functions. Probably the request constructors as well. It was also on a Heroku scaling dyno. In my testing, the inbuilt web server is decent, but starts becoming hit and miss around 10,000 - 25,000 requests/sec, depending on hardware. More than enough for hobby sites, but not quite enough for heavier enterprise applications. What you do with each request can have huge impacts, a colleague tried to lazily render templates, so follow pre-rendering best practices.
- lacampbell 10y agoIn my testing, the inbuilt web server is decent, but starts becoming hit and miss around 10,000 - 25,000 requests/sec, depending on hardware. More than enough for hobby sites, but not quite enough for heavier enterprise applications. What are you comparing it to here? Something fast written in java or go? I could understand racket being slower than that, but surely it'd perform faster than the likes of flask or sinatra.
- shakna 10y agoIt's about the same as what I get out of most things. Usually, this just ends up being the C10k problem, which you need some not-so-nice code to work around.