{"id":462,"date":"2009-11-29T22:54:16","date_gmt":"2009-11-30T04:54:16","guid":{"rendered":"http:\/\/75.134.27.61:8101\/wordpress\/?p=462"},"modified":"2012-08-14T20:50:55","modified_gmt":"2012-08-15T01:50:55","slug":"tornado-web-very-fast","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/tornado-web-very-fast\/","title":{"rendered":"Tornado Web Server &#8211; Very Fast!"},"content":{"rendered":"<p>I just did a benchmark comparison on Tornado Web Server and Apache + PHP server. The result is pretty amazing.<\/p>\n<h3><strong>What to test: <\/strong><\/h3>\n<p>A simple Hello World application.<\/p>\n<h3><strong>How:<\/strong><\/h3>\n<pre>ab -n 1000 -c 300 http:\/\/myserver.ip<\/pre>\n<h3><strong>Test Environment<\/strong><\/h3>\n<p>OS: FreeBSD 7.1<br \/>\nCPU: Pentium III 933 MHz<br \/>\nRam: 256 MB<br \/>\nPHP: 5.2.9<br \/>\nPython: 2.5.4<br \/>\nTornado: 0.2<\/p>\n<h3><strong>Result:<\/strong><\/h3>\n<p><strong>Apache + PHP:<\/strong><\/p>\n<pre>Concurrency Level:\u00a0\u00a0\u00a0\u00a0\u00a0 300\r\nTime taken for tests:\u00a0\u00a0 3.515 seconds\r\nComplete requests:\u00a0\u00a0\u00a0\u00a0\u00a0 1000\r\nFailed requests:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nWrite errors:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nTotal transferred:\u00a0\u00a0\u00a0\u00a0\u00a0 255000 bytes\r\nHTML transferred:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 12000 bytes\r\nRequests per second:\u00a0\u00a0\u00a0 <strong>284.50<\/strong> [#\/sec] (mean)\r\nTime per request:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1054.499 [ms] (mean)\r\nTime per request:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3.515 [ms] (mean, across all concurrent requests)\r\nTransfer rate:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 70.85 [Kbytes\/sec] received<\/pre>\n<p><strong>Tornado Web Server:<\/strong><\/p>\n<pre>Concurrency Level:\u00a0\u00a0\u00a0\u00a0\u00a0 300\r\nTime taken for tests:\u00a0\u00a0 1.907 seconds\r\nComplete requests:\u00a0\u00a0\u00a0\u00a0\u00a0 1000\r\nFailed requests:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nWrite errors:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nTotal transferred:\u00a0\u00a0\u00a0\u00a0\u00a0 168000 bytes\r\nHTML transferred:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 12000 bytes\r\nRequests per second:\u00a0\u00a0\u00a0 <strong>524.48<\/strong> [#\/sec] (mean)\r\nTime per request:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 571.993 [ms] (mean)\r\nTime per request:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.907 [ms] (mean, across all concurrent requests)\r\nTransfer rate:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 86.05 [Kbytes\/sec] received<\/pre>\n<p><strong>What do these numbers mean?<\/strong><\/p>\n<p>Tornado Web Server can handle <strong>1.84<\/strong> times more requests than Apache + PHP server in a given time!<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just did a benchmark comparison on Tornado Web Server and Apache + PHP server. The result is pretty amazing. What to test: A simple Hello World application. How: ab <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/tornado-web-very-fast\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[94,144,6],"tags":[8,20,19,172,56],"class_list":["post-462","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-sever-problem","category-technology","tag-apache","tag-benchmark","tag-performance","tag-php","tag-tornado-web"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-7s","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":478,"url":"https:\/\/icesquare.com\/wordpress\/nginx-vs-tornado-web-vs-apache-performance-benchmark\/","url_meta":{"origin":462,"position":0},"title":"nginx vs Tornado Web vs Apache Performance Benchmark","author":"Derrick","date":"November 30, 2009","format":false,"excerpt":"Let's put the nginx, Tornado and Apache and see who is the winner. What to test: A simple Hello World webpage. How: ab -n 10000 -c 300 http:\/\/myserver.ip Test Environment: OS: Ubuntu 9.10 (32-bit) \/ Linux 2.6.31 CPU: Pentium Celeron M 1.5 GHz Ram: 512 MB Apache: 2.2.12 PHP: 5.2.10\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":87,"url":"https:\/\/icesquare.com\/wordpress\/performance-benchmark-freebsd-vs-ubuntu-vs-os-x-which-one-is-better\/","url_meta":{"origin":462,"position":1},"title":"Performance Benchmark: FreeBSD vs Ubuntu vs OS X, which one is better?","author":"Derrick","date":"May 22, 2009","format":false,"excerpt":"If you cannot decide whether you should go with FreeBSD or Ubuntu (or Linux), check out this article: FreeBSD or Linux in 6 Simple Questions Recently I am working on building a web farm which is formed by three ancient time computers (The sum of their ages is older than\u2026","rel":"","context":"In &quot;FreeBSD&quot;","block_context":{"text":"FreeBSD","link":"https:\/\/icesquare.com\/wordpress\/category\/sever-problem\/freebsd\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3514,"url":"https:\/\/icesquare.com\/wordpress\/freebsdphp-does-not-work-after-upgrading-apache-to-2-2-27\/","url_meta":{"origin":462,"position":2},"title":"[FreeBSD]PHP does not work after upgrading Apache to 2.2.27","author":"Derrick","date":"April 11, 2014","format":false,"excerpt":"I upgraded the Apache to 2.2.27 on my FreeBSD box via portmaster. The upgrade went very smooth. After the upgrade, I found that Apache no longer rendered the PHP page correctly. In the other words, it displayed the source code of the PHP files instead of executing the code. Before\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3925,"url":"https:\/\/icesquare.com\/wordpress\/freebsdupgrade-php-5-5-to-5-6\/","url_meta":{"origin":462,"position":3},"title":"[FreeBSD]Upgrade PHP 5.5 to 5.6","author":"Derrick","date":"February 20, 2015","format":false,"excerpt":"It is not easy to upgrade PHP 5.5 to 5.6 in FreeBSD. Without proper preparation, the upgrade process may drive you nut. Before you decide to get your hands wet, here are what I recommend you to do: Back up your files Test your website in a PHP 5.6 environment\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3134,"url":"https:\/\/icesquare.com\/wordpress\/php-network-error\/","url_meta":{"origin":462,"position":4},"title":"PHP Network Error","author":"Derrick","date":"February 21, 2013","format":false,"excerpt":"One of my PHP web applications stopped working today. After I investigated the issues, I noticed that this is a very famous, yet unsolved error. I have no idea why it happens, but I do have a work around solution for it. Basically, this article applies to you if you\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":376,"url":"https:\/\/icesquare.com\/wordpress\/updated-what-technologies-or-toys-i-am-playing-recently\/","url_meta":{"origin":462,"position":5},"title":"Updated: What technologies (or toys) I am playing recently?","author":"Derrick","date":"November 16, 2009","format":false,"excerpt":"Recently I am playing the following technologies (toys): Tornado Web - Not sure how long will Apache + PHP last. Time to learn Python. Tokyo Cabinet & Tyrant - Another one of my long term plans to step away from SQL. PHP API for Tokyo Tyrant -- I decide to\u2026","rel":"","context":"In &quot;Fun Stuffs&quot;","block_context":{"text":"Fun Stuffs","link":"https:\/\/icesquare.com\/wordpress\/category\/fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=462"}],"version-history":[{"count":21,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/462\/revisions"}],"predecessor-version":[{"id":2922,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/462\/revisions\/2922"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}