lat_http.8 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .\" $Id$
  2. .TH LAT_HTTP 8 "$Date$" "(c)1994 Larry McVoy" "LMBENCH"
  3. .SH NAME
  4. lat_http \- measure HTTP latencies
  5. .SH SYNOPSIS
  6. .B lat_http
  7. .I -s
  8. .sp .5
  9. .B lat_tcp
  10. .I hostname
  11. .sp .5
  12. .B lat_tcp
  13. .I -hostname
  14. .SH DESCRIPTION
  15. .B lat_http
  16. implements a
  17. .I very
  18. simple HTTP server and uses this simple server to measure
  19. HTTP version 1.0 transactional latency.
  20. .PP
  21. .B lat_http
  22. has three forms of usage: as a server (lat_http -s),
  23. as a client (lat_http localhost), and
  24. as a shutdown (lat_http -localhost).
  25. .PP
  26. .B lat_http
  27. is not meant to be used to measure HTTP server performance,
  28. but was intended to provide some insight into the potential
  29. performance for HTTP version 1.0 servers.
  30. HTTP version 1.0 is very inefficient with respect to system
  31. and networking resources, since it creates a new TCP connection
  32. for each file request.
  33. .SH OUTPUT
  34. .B lat_http
  35. reports the average file size, the total number of bytes
  36. transferred, the total time to transfer the data, and
  37. the average bandwidth, i.e.:
  38. .sp
  39. .ft CB
  40. Avg xfer: 3.2KB, 41.8KB in 14.4990 millisecs, 2.88 MB/sec
  41. .ft
  42. .SH ACKNOWLEDGEMENT
  43. Funding for the development of
  44. this tool was provided by Sun Microsystems Computer Corporation.
  45. .SH "SEE ALSO"
  46. lmbench(8), read(2), write(2), socket(2), bind(2), connect(2).