Am I crazy or is it actually going this fast? (MultiThreading)
<pre><code>from tornado import httpclient
import time

start = time.time()

for x in range(1000):
    httpclient.AsyncHTTPClient().fetch("https://www.google.com", method="GET")

print ('{0} seconds'.format(time.time() - start))
</code></pre>

<p>Result <code>1.11500000954 seconds</code></p>

<p>I wrote this to see how fast I can send 1000 requests to any site (I chose google) and I don't know why, but I feel like I did something wrong and its not actually going this quick, if I did do something wrong, could someone point out my error?</p>

<p>Thank you!</p>

<p>Well, yes, you spun off 1000 <em>asynchronous</em> requests to Google and timed that.  You did not, however, time the overhead of actually making the HTTP call.  That would require a <a href="http://www.tornadoweb.org/en/stable/httpclient.html#tornado.httpclient.AsyncHTTPClient">callback-type</a> of handler.</p>

python multithreading tornado