include ../Makefile.def

ALL = signaloverhead timeroverhead pipes socketlocal \
	  fifoserver fifoclient shared \
	  tcpsclientoverhead tcpsserverconcurrentoverhead semaphore \
      tcpsserverconcurrent tcpsclientthroughput \
      udpsserver udpsclient message \
      systemcalloverhead memory

all: $(ALL)

# generate performance data

dataget:
	# measure memory throughput
	memory >memory.log
	#	
	# measure system call overhead
	systemcalloverhead >systemcalloverhead.log
	#
	# measure signal time
	signaloverhead >signaloverhead.log
	#
	# measure timer overhead
	timeroverhead >timeroverhead.log
	#
	# measure pipe throughput
	pipes
	#
	# measure throughput of local sockets
	socketlocal
	#
	# measures fifo throughput
	fifoserver &
	sleep 3
	fifoclient
	#
	# System V IPC
	#
	# measure how many sem ops per sec
	semaphore >semaphore.log
	#
	# measure how many shared memory region ops per sec
	shared >shared.log
	#
	# measure throughput and ops/s of messages
	message >message.log
	#
	# local TCP / UDP	
	#
	# measure (local) UDP throughput and ops/s
	udpsserver 6543 &
	sleep 3
	udpsclient 127.0.0.1 6543
	#
	# measure (local) TCP throughput
	tcpsserverconcurrent 6542 &
	sleep 3
	tcpsclientthroughput 127.0.0.1 6542
	#
	# measure overhead of establishing a (local) TCP connection
	tcpsserverconcurrentoverhead 6541 &
	sleep 3
	tcpsclientoverhead	127.0.0.1 6541
	#
	#
	## dist TCP / UDP
	##
	## measure (dist) UDP throughput and ops/s
	#udpsserver 6543 &
	#udpsclient 127.0.0.1 6543
	##
	## measure (dist) TCP throughput
	#tcpsserverconcurrent 6542 &
	#tcpsclientthroughput 127.0.0.1 6542
	##
	## measure overhead of establishing a (dist) TCP connection
	#tcpsserverconcurrentoverhead 6541 &
	#tcpsclientoverhead	127.0.0.1 6541


include ../Makefile.def2




