def tornado_app(port):
import tornado.web<EOL>from web.apps.tornado_app import TornadoApplication<EOL>from tornado.log import enable_pretty_logging<EOL>enable_pretty_logging()<EOL>app = TornadoApplication()<EOL>class Home(Handler):<EOL><INDENT>def get(self, req, resp):<EOL><INDENT>resp.write(HELLO_WORLD)<EOL>resp.finish()<EOL><DEDENT><DEDENT>class Landing(Handler):<EOL><INDENT>def get(self, req, resp):<EOL><INDENT>resp.write(LANDING_PAGE)<EOL>resp.finish()<EOL><DEDENT><DEDENT>app.add_route('<STR_LIT:/>', Home())<EOL>app.add_route('<STR_LIT>', Landing())<EOL>app.add_static_route('<STR_LIT>', STATIC_PATH)<EOL>app.timed_call(<NUM_LIT>, app.stop)<EOL>app.start(port=port)<EOL>
Even without logging it's slower!

    Running 30s test @ http://127.0.0.1:8888/
      12 threads and 400 connections
      Thread Stats   Avg      Stdev     Max   +/- Stdev
        Latency   179.14ms   26.19ms 464.63ms   92.60%
        Req/Sec   184.55    107.47   560.00     57.59%
      64871 requests in 30.10s, 12.87MB read
    Requests/sec:   2155.42
    Transfer/sec:    437.82KB

    with logging

    Running 30s test @ http://127.0.0.1:8888/
      12 threads and 400 connections
      Thread Stats   Avg      Stdev     Max   +/- Stdev
        Latency   209.77ms   28.48ms 320.47ms   91.43%
        Req/Sec   156.14     79.60   500.00     63.72%
      55415 requests in 30.10s, 10.99MB read
    Requests/sec:   1841.04
    Transfer/sec:    373.96KB