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
12# PROFILING=-prof -fprof-auto
18BENCHS= PingTCP.exe PingTCPTransport.exe PingPipes.exe SendTransport.exe
22 $(GHC) -O2 -rtsopts -threaded --make $(INCLUDES) $(PROFILING) $< -o $@
24#-------------------------------------------------------------------------------
25# Shorthands for running benchmarks:
27run: run1 run2 run3 run4
31 ./PingTCP.exe server 8080 &
33 time ./PingTCP.exe client 0.0.0.0 8080 $(size) $(trials)
39 ./PingTCPTransport.exe server 0.0.0.0 8080 sourceAddr &
41 # Run 100K ping-pongs, for one trial:
42 time ./PingTCPTransport.exe client 0.0.0.0 8081 sourceAddr $(size) $(trials)
44 killall PingTCPTransport.exe
48 ./PingPipes.exe server sourceAddr &
50 time ./PingPipes.exe client sourceAddr $(size) $(trials)
54# This benchmark measures throughput rather than latency
55# Here 'size' means message size rather than number of pings:
58 ./SendTransport.exe server 0.0.0.0 8080 sourceAddr &
60 ./SendTransport.exe client 0.0.0.0 8081 sourceAddr $(size)
61 killall SendTransport.exe
65 $(MAKE) runTPT size=1000
66 $(MAKE) runTPT size=5000
67 $(MAKE) runTPT size=10000
68 $(MAKE) runTPT size=50000
69 $(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