httplib Performance Test Results (Mac OS X)

25 March 2008
16:58

By cmlenz as Text only

Test results on Mac OS X Leopard with Python 2.5.1 (pretty much the same with Python 2.4)

1 simple ( 0): GET 18.93ms
2 simple ( 1): GET 3.91ms
3 simple ( 2): GET 2.50ms
4 simple ( 3): GET 2.58ms
5 simple ( 4): GET 2.49ms
6 simple ( 5): GET 2.52ms
7 simple ( 6): GET 2.74ms
8 simple ( 7): GET 2.44ms
9 simple ( 8): GET 1.69ms
10 simple ( 9): GET 1.66ms
11 simple (10): GET 1.66ms
12 simple (11): GET 1.71ms
13 simple (12): GET 1.83ms
14 simple (13): GET 1.80ms
15 simple (14): GET 1.79ms
16 1138 function calls in 0.052 CPU seconds
17
18 Ordered by: internal time, call count
19 List reduced from 55 to 3 due to restriction <0.050000000000000003>
20
21 ncalls tottime percall cumtime percall filename:lineno(function)
22 135 0.022 0.000 0.022 0.000 socket.py:321(readline)
23 1 0.010 0.010 0.011 0.011 __init__.py:70(search_function)
24 30 0.010 0.000 0.010 0.000 <string>:1(connect)
25
26
27
28 $ python httplib_test.py -n 15 -p shared
29 shared ( 0): GET 3.07ms
30 shared ( 1): GET 2.01ms
31 shared ( 2): GET 1.89ms
32 shared ( 3): GET 1.85ms
33 shared ( 4): GET 1.99ms
34 shared ( 5): GET 2.65ms
35 shared ( 6): GET 1.94ms
36 shared ( 7): GET 1.95ms
37 shared ( 8): GET 1.93ms
38 shared ( 9): GET 1.88ms
39 shared (10): GET 1.91ms
40 shared (11): GET 1.59ms
41 shared (12): GET 1.54ms
42 shared (13): GET 1.52ms
43 shared (14): GET 1.51ms
44 1082 function calls in 0.030 CPU seconds
45
46 Ordered by: internal time, call count
47 List reduced from 56 to 3 due to restriction <0.050000000000000003>
48
49 ncalls tottime percall cumtime percall filename:lineno(function)
50 135 0.022 0.000 0.022 0.000 socket.py:321(readline)
51 16 0.002 0.000 0.002 0.000 <string>:1(connect)
52 15 0.001 0.000 0.014 0.001 httplib.py:224(readheaders)

Download Raw Source

Comments

No comments so far.