title: gevent urllib is slow
body: <p>I've created a set of demos of a TCP server however my gevent examples are noticely slower. I'm really not testing performance but at the moment something is making the gevent version 5 times slower.</p>
  
  <p>I'm sure must be how I compiled gevent but can't work out the problem. I'm using OSX leopard using fink compiled python 2.6 and 2.7. I've tried both the stable gevent and gevent 1.0b1 and it acts the same. The echo takes 5 seconds to respond, where the other examples take &lt;1sec. If I remove the urllib call then the problem goes away.</p>
  
  <p>I put all the code in <a href="https://github.com/djay/geventechodemo" rel="nofollow">https://github.com/djay/geventechodemo</a></p>
  
  <p>To run the examples I'm using zc.buildout so to build</p>
  
  <pre><code>$ python2.7 bootstrap.py
  $ bin/buildout
  </code></pre>
  
  <p>To run the gevent example:</p>
  
  <pre><code>$ bin/py geventecho3.py &amp;
  [1] 80790
  waiting for connection...
  $ telnet localhost 8080
  Trying 127.0.0.1...
  ...connected from: ('127.0.0.1', 56588)
  Connected to localhost.
  Escape character is '^]'.
  hello
  echo: avast
  </code></pre>
  
  <p>This will take 3-4 seconds to respond on my system.</p>
  
  <p>However the threaded example </p>
  
  <pre><code>$ bin/py threadecho2.py
  </code></pre>
  
  <p>or the twisted example</p>
  
  <pre><code>$ bin/py twistedecho2.py
  </code></pre>
  
  <p>Is less than 1s. Any idea what I'm doing wrong?</p>