Lev Walkin (lionet) wrote,
Lev Walkin
lionet

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 )
Tags: erlang, tornado, yaws, yucan
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 55 comments
Previous
← Ctrl ← Alt
Next
Ctrl → Alt →

Anonymous

November 6 2009, 10:02:25 UTC 10 years ago

had you tried to change somaxconn ?

Anonymous

December 14 2009, 22:54:20 UTC 9 years ago

Очень заинтересовал Ваш сервер Yucan.
Где можно на него посмотреть? Какая лицензия?
Спасибо.
Закрытая разработка, извините. Есть misultin — существенно похожий по подходу и по получающейся скорости, c лицензией BSD.

Anonymous

December 15 2009, 19:00:38 UTC 9 years ago

ОК.
Спасибо за наводку на misultin. Буду изучать.
Если не секрет, почему решили писать свой, а не использовать тот же misultin как базу? Производительность? Лицензия?
Потому что я набросал yucan в качестве бенчмарка, для анализа потенциальной скорости эрланга при правильной архитектуре (у yaws код порос годовыми кольцами). А уже потом автор мисултина, про которого я раньше не знал, увидев этот пост, порекомендовал его мне. Я написал об этом факте в update.
Hi Lev,

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

Regards
Z.
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.
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
Previous
← Ctrl ← Alt
Next
Ctrl → Alt →