Size: 993
Comment:
|
Size: 986
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 7: | Line 7: |
The following two files explain the tests done on the AsyncoreHTTPServer module after it was embedded into a server that is used in a production environment. I will not post the full source code for that server here as it has a very specific use and would be of no use to anybody. However, the two files below could be useful if someone wants to write test scrips for a server using AsyncoreHTTPServer. | The following file can be used to run tests on the AsyncoreHTTPServer module. [[attachment:testACHTTPServer.py|testACHTTPServer]] The test results below were done using HEAD requests on an arbitrary, but consistent URI. || Keep Alive || Time (sec) || Requests || Requests per/sec || || True || 0.301 || 165 || 548 || || False || 0.161 || 45 || 280 || The following README files explains the test condition. (Note: It's very out of date) |
Line 10: | Line 20: |
[[attachment:testACHTTPServer.py|testACHTTPServer]] |
AsyncoreHTTPServer
This is a small side project I actually did for work. I wrapped asyncore to be an server and request handler. It can be used in much the same way as SimpleHTTPServer though the API is a bit different. It is still a work in progress, but is running, in its current form, in a production environment. It is for the most part HTTP/1.1 compliant and can be used as a RESTful server.
The following file can be used to run tests on the AsyncoreHTTPServer module.
The test results below were done using HEAD requests on an arbitrary, but consistent URI.
Keep Alive |
Time (sec) |
Requests |
Requests per/sec |
True |
0.301 |
165 |
548 |
False |
0.161 |
45 |
280 |
The following README files explains the test condition. (Note: It's very out of date)