$ python httplib_test_repeat.py -n 15 -H localhost:8080 -p simple simple ( 0): GET 12.09ms simple ( 1): GET 2.33ms simple ( 2): GET 1.97ms simple ( 3): GET 2.06ms simple ( 4): GET 2.12ms simple ( 5): GET 2.12ms simple ( 6): GET 2.11ms simple ( 7): GET 1.95ms simple ( 8): GET 2.33ms simple ( 9): GET 1.87ms simple (10): GET 1.74ms simple (11): GET 2.18ms simple (12): GET 1.90ms simple (13): GET 1.75ms simple (14): GET 1.99ms 1308 function calls in 0.042 CPU seconds Ordered by: internal time, call count List reduced from 78 to 4 due to restriction <0.050000000000000003> ncalls tottime percall cumtime percall filename:lineno(function) 150 0.022 0.000 0.022 0.000 socket.py:307(readline) 2 0.006 0.003 0.007 0.004 sre_compile.py:296(_optimize_unicode) 15 0.002 0.000 0.003 0.000 httplib.py:610(connect) 30 0.001 0.000 0.001 0.000 :1(connect) $ python httplib_test_repeat.py -n 15 -H localhost:8080 -p shared shared ( 0): GET 12.73ms shared ( 1): GET 40.51ms shared ( 2): GET 40.94ms shared ( 3): GET 39.97ms shared ( 4): GET 40.99ms shared ( 5): GET 40.95ms shared ( 6): GET 40.94ms shared ( 7): GET 40.97ms shared ( 8): GET 41.00ms shared ( 9): GET 40.92ms shared (10): GET 41.03ms shared (11): GET 40.95ms shared (12): GET 40.90ms shared (13): GET 40.97ms shared (14): GET 40.94ms 1252 function calls in 0.585 CPU seconds Ordered by: internal time, call count List reduced from 79 to 4 due to restriction <0.050000000000000003> ncalls tottime percall cumtime percall filename:lineno(function) 150 0.565 0.004 0.565 0.004 socket.py:307(readline) 2 0.007 0.003 0.007 0.004 sre_compile.py:296(_optimize_unicode) 16 0.003 0.000 0.003 0.000 :1(connect) 15 0.001 0.000 0.005 0.000 httplib.py:175(readheaders)