2# Makefile for building and running benchmarks.
7#--------------------------------------------------------------------------------
10# By default, run 100K ping-pongs, for one trial:
13# Alternatively, you can run "make run1 size=1000 trials=100", for example.
19BENCHS= PingPongTCP.exe PingPongTCPTransport.exe
20# PingPongPipes.exe SendTransport.exe
24 $(GHC) -O2 -rtsopts -threaded --make $(INCLUDES) $< -o $@
26#-------------------------------------------------------------------------------
27# Shorthands for running benchmarks:
32# Benchmark raw sockets without network-transport:
35 ./PingPongTCP.exe server 8080 &
37 time ./PingPongTCP.exe client 0.0.0.0 8080 $(size) $(trials)
39 killall PingPongTCP.exe
43 ./PingPongTCPTransport.exe server 0.0.0.0 8080 sourceAddr.txt &
45 # Run 100K ping-pongs, for one trial:
46 time ./PingPongTCPTransport.exe client 0.0.0.0 8081 sourceAddr.txt $(size) $(trials)
48# killall PingPongTCPTransport.exe
52 ./PingPongPipes.exe server sourceAddr &
54 time ./PingPongPipes.exe client sourceAddr $(size) $(trials)
56 killall PingPongPipes.exe
58# This benchmark measures throughput rather than latency
59# Here 'size' means message size rather than number of pings:
62 ./SendTransport.exe server 0.0.0.0 8080 sourceAddr &
64 ./SendTransport.exe client 0.0.0.0 8081 sourceAddr $(size)
65 killall SendTransport.exe
69 $(MAKE) runTPT size=1000
70 $(MAKE) runTPT size=5000
71 $(MAKE) runTPT size=10000
72 $(MAKE) runTPT size=50000
73 $(MAKE) runTPT size=100000
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list