Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kazu-yamamoto/latency-bench
latency benchmark tool in C an Haskell
https://github.com/kazu-yamamoto/latency-bench
Last synced: 7 days ago
JSON representation
latency benchmark tool in C an Haskell
- Host: GitHub
- URL: https://github.com/kazu-yamamoto/latency-bench
- Owner: kazu-yamamoto
- Created: 2013-06-06T04:09:51.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-09T01:15:59.000Z (over 11 years ago)
- Last Synced: 2024-10-11T23:56:08.264Z (about 1 month ago)
- Language: C
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# latency-bench
Latency benchmark tool for Haskell.
## Building
In the top directory, type:
% make
You should do both on client and server machines.
This Makefile is very ad hoc, sorry. You must use "gmake". On BSD
variants, type:% gmake MAKE=gmake
## A single connection
### server (172.16.1.1):
% cd single
% ./echo-serverThere are three echo servers:
- echo-server: written in C
- echo-threaded-server: written in Haskell with the threaded RTS
- echo-nonthreaded-server: written in Haskell with the nonthreaded RTSEcho servers uses 8001 port.
### client (172.16.1.2):
% cd single
% ./echo-client 172.16.1.1 100The last argument is the number of ping. echo-client send 8byte pings.
## Multiple connections
### server (172.16.1.1):
% cd single
% ./echo-serverThere are three echo servers:
- echo-server: written in C
- echo-threaded-server: written in Haskell with the threaded RTS
- echo-nonthreaded-server: written in Haskell with the nonthreaded RTSEcho servers uses 8001 port.
### client (172.16.1.2):
% cd multiple
% ./echo-client -n 100000 -c 1000 -t 10 -k "http://172.16.1.1:8001/"echo-client is based on weighttp.
- -n: the number of pings
- -c: the number of connections
- -t: the number of worker native threads
- -k: using persistent connectionecho-client sends 8 byte pings, not HTTP requests.
## Credits
Most parts are copied from:
- https://github.com/haskell-distributed/network-transport-tcp
- https://github.com/lighttpd/weighttp
- http://d.hatena.ne.jp/winebarrel/20080309/p2