?

Log in

No account? Create an account

Previous Entry | Next Entry

Erlang, Yaws, and the deadly Tornado

Good things sometimes happen to the open source community. Since Facebook acquisition of FriendFeed, a bunch of technologies were released to the wild, including, most notably, a Tornado web server written in Python. The Tornado is touted as a «a scalable, non-blocking web server and web framework». See Wikipedia article http://en.wikipedia.org/wiki/Tornado_HTTP_Server on some details on the performance of that server, as well as some comparison with other web servers.

Here's the chart, taken from Wikipedia:

Performance on AMD Opteron, 2.4GHz, 4 Cores
Server Setup Requests per Second
Tornado nginx, 4 frontends 8213
Tornado 1 single threaded frontend 3353
Django Apache/mod_wsgi 2223
web.py Apache/mod_wsgi 2066
CherryPy standalone 785


The numbers looked interesting, so I decided to benchmark Tornado myself to check out how it fares against some Erlang tools. Erlang, Yaws, Tornado benchmark followsCollapse )

Comments

( 55 comments — Leave a comment )
Page 2 of 2
<<[1] [2] >>
(Anonymous)
Nov. 6th, 2009 10:02 am (UTC)
had you tried to change somaxconn ?
(Anonymous)
Dec. 14th, 2009 10:54 pm (UTC)
Очень заинтересовал Ваш сервер Yucan.
Где можно на него посмотреть? Какая лицензия?
Спасибо.
lionet
Dec. 14th, 2009 11:16 pm (UTC)
Закрытая разработка, извините. Есть misultin — существенно похожий по подходу и по получающейся скорости, c лицензией BSD.
(Anonymous)
Dec. 15th, 2009 07:00 pm (UTC)
ОК.
Спасибо за наводку на misultin. Буду изучать.
Если не секрет, почему решили писать свой, а не использовать тот же misultin как базу? Производительность? Лицензия?
lionet
Dec. 15th, 2009 07:03 pm (UTC)
Потому что я набросал yucan в качестве бенчмарка, для анализа потенциальной скорости эрланга при правильной архитектуре (у yaws код порос годовыми кольцами). А уже потом автор мисултина, про которого я раньше не знал, увидев этот пост, порекомендовал его мне. Я написал об этом факте в update.
zabrane
Apr. 21st, 2010 11:47 pm (UTC)
Yucan source code
Hi Lev,

I'd like to test Yucan on my box.
Where can I find it source code?

Regards
Z.
lionet
Apr. 22nd, 2010 01:13 am (UTC)
Re: Yucan source code
Please test misultin instead. Yucan has a closed source code. Misultin is sufficiently similar in engine design to Yucan so the performance test results on misultin are going to be representative of Yucan performance.
Ngoc Dao
Sep. 5th, 2012 03:14 am (UTC)
Backlog of 128 seems to be a sweet spot because that's OS default.
But that's still not optimal.
See:
http://ngocdaothanh.github.com/xitrum/guide/deploy.html#note-about-backlog
Page 2 of 2
<<[1] [2] >>
( 55 comments — Leave a comment )