4

我刚刚使用 eventmachine 启动了Thin 和 Rainwbows 之间的异步 sinatra 基准测试

有人可以用 eventmachine 和四个 work_processes 解释为什么 Thin 比 Rainbows 快吗?我也用一个 work_processes 进行了尝试,但结果没有改变。瘦还是更快。

提前感谢弗朗切斯科

4

1 回答 1

6

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.

于 2011-02-04T20:48:26.690 回答