#
151654 |
|
25-Oct-2005 |
rwatson |
Updates and enhancements to the multi-threaded httpd performance test tool:
- Use uname(3) to query the OS name to report in the HTTP headers. This is probably more useful than hard-coding FreeBSD.
- If no path is specified, create a 1k temporary file and send that instead. Pass a file descriptor into http_serve() rather than using a global fd.
- Add more carriage returns to the HTTP headers to be a bit more correct. (Suggested by: andre)
- Read to a buffer rather than a single character to reduce the number of recv() system calls pulling in the HTTP request.
- Properly wait for two, not one, \n's on input.
|
#
150990 |
|
06-Oct-2005 |
rwatson |
Add basic simplified HTTP benchmark tools to the netrate suite:
- http is a lightweight, multithreaded HTTP query tool, which performs a timed measurement of the rate at which it can download files using single-fetch HTTP/1.0. Other than specifying the IP and a URL path, it requires zero configuration.
- httpd is a lightweight, multithreaded HTTP server tool, which exports a single file of choice to the HTTP client, and responds with it no matter what the request. Other than specifying the file to export, it requires zero configuration.
The goal of these tools is to measure the network costs associated with HTTP serving, rather than file system, HTTP protocol parsing, error handling, etc, and as such, parts relating to less interesting components of HTTP testing are intentionally omitted. Both are linked against libpthread by default.
|