2# Run 100K ping-pongs, for one trial:
5# You can run "make run1 size=1000 trials=100" for example.
8# Disable this to test installed packages only:
9INCLUDES= -i../network-transport/src -i../network-transport-pipes/src
15BENCHS= PingTCP.exe PingTCPTransport.exe PingPipes.exe SendTransport.exe
19 $(GHC) -O2 -rtsopts -threaded --make $(INCLUDES) $< -o $@
21#-------------------------------------------------------------------------------
22# Shorthands for running benchmarks:
24run: run1 run2 run3 run4
28 ./PingTCP.exe server 8080 &
30 time ./PingTCP.exe client 0.0.0.0 8080 $(size) $(trials)
36 ./PingTCPTransport.exe server 0.0.0.0 8080 sourceAddr &
38 # Run 100K ping-pongs, for one trial:
39 time ./PingTCPTransport.exe client 0.0.0.0 8081 sourceAddr $(size) $(trials)
41 killall PingTCPTransport.exe
45 ./PingPipes.exe server sourceAddr &
47 time ./PingPipes.exe client sourceAddr $(size) $(trials)
51# This benchmark measures throughput rather than latency
52# Here 'size' means message size rather than number of pings:
55 ./SendTransport.exe server 0.0.0.0 8080 sourceAddr &
57 ./SendTransport.exe client 0.0.0.0 8081 sourceAddr $(size)
58 killall SendTransport.exe
62 $(MAKE) runTPT size=1000
63 $(MAKE) runTPT size=5000
64 $(MAKE) runTPT size=10000
65 $(MAKE) runTPT size=50000
66 $(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