I just launched async sinatra benchmark between thin and rainwbows with eventmachine.
开发者_如何学编程Someone can explain why Thin is faster than Rainbows with eventmachine and four work_processes? I also tried it with one work_processes but the result didn't change. Thin is still faster.
Thank in advance Francesco
Because I haven't profiled Rainbows yet for this use case. I advised Eric how to add support but haven't yet (over a year now I think :-/) had time to look into it.
Thin is quite a lightweight server, there's probably less overhead. It could also be outlier things like how you compiled the http parser.
Without more details of the platform, builds, and actual performance it's hard to say more. I can probably replicate though, I'd expect.
The other thing that's worth mentioning, is that my async rack hacks are not intended for /speed/ as much as concurrency. Many speed oriented benchmarks are not really appropriate.
精彩评论