4 ms·
Good point. I also noticed they're running snap with 4 threads. Since rails is multi-process rather than multi-thread they would actually need to set up somethi
by davidmathers 16y ago
Good point. I also noticed they're running snap with 4 threads. Since rails is multi-process rather than multi-thread they would actually need to set up something like passenger as acangiano suggested.
Better would be to just limit the test to single-process/single-thread. The idea should be to compare web frameworks not web servers.
- mightybyte 16y agoYes, but it's also useful to compare similar levels of effort. Using 4 threads with Snap is a similar level of effort to using thin. Setting up 4 separate processes with passenger requires quite a bit more effort, especially if you haven't done it before.
- davidmathers 16y agoYou can set up 4 processes with thin, just do: > thin -e production -s 4 start The problem is that each process listens on its own port. They can't all listen on port 3000, so you need some sort of proxy to parcel out the requests.