Index: src/benchmark/Makefile.am
===================================================================
--- src/benchmark/Makefile.am	(revision f47ba55a98273c1959f3e815b06394ea92df54d0)
+++ src/benchmark/Makefile.am	(revision 21a1efb16da9a4e2b7d1a53dcfcd1d812920d346)
@@ -31,33 +31,41 @@
 
 ctxswitch-coroutine$(EXEEXT):
-	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 CorCtxSwitch.c
-	@for number in 1 2 3 4 5 6 7 8 9 10; do \
-                ./a.out ; \
+	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 CorCtxSwitch.c
+	@rm -f .result.log
+	@for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \
+                ./a.out | tee -a .result.log ; \
         done
-	@rm -f ./a.out
+	@./stat.py .result.log
+	@rm -f a.out .result.log
 
 ctxswitch-thread$(EXEEXT):
-	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 ThrdCtxSwitch.c
-	@for number in 1 2 3 4 5 6 7 8 9 10; do \
-                ./a.out ; \
+	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 ThrdCtxSwitch.c
+	@rm -f .result.log
+	@for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \
+                ./a.out | tee -a .result.log ; \
         done
-	@rm -f ./a.out
+	@./stat.py .result.log
+	@rm -f a.out .result.log
 
 sched-int$(EXEEXT):
-	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 SchedInt.c
-	@for number in 1 2 3 4 5 6 7 8 9 10; do \
-                ./a.out ; \
+	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 SchedInt.c
+	@rm -f .result.log
+	@for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \
+                ./a.out | tee -a .result.log ; \
         done
-	@rm -f ./a.out
+	@./stat.py .result.log
+	@rm -f a.out .result.log
 
 monitor$(EXEEXT):
-	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 Monitor.c
-	@for number in 1 2 3 4 5 6 7 8 9 10; do \
-                ./a.out ; \
+	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 Monitor.c
+	@rm -f .result.log
+	@for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \
+                ./a.out | tee -a .result.log ; \
         done
-	@rm -f ./a.out
+	@./stat.py .result.log
+	@rm -f a.out .result.log
 
 csv-data$(EXEEXT):
-	@${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -quiet -DN=10000000 csv-data.c
+	@${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -quiet -DN=50000000 csv-data.c
 	@./a.out
 	@rm -f ./a.out
Index: src/benchmark/Makefile.in
===================================================================
--- src/benchmark/Makefile.in	(revision f47ba55a98273c1959f3e815b06394ea92df54d0)
+++ src/benchmark/Makefile.in	(revision 21a1efb16da9a4e2b7d1a53dcfcd1d812920d346)
@@ -581,33 +581,41 @@
 
 ctxswitch-coroutine$(EXEEXT):
-	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 CorCtxSwitch.c
-	@for number in 1 2 3 4 5 6 7 8 9 10; do \
-                ./a.out ; \
+	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 CorCtxSwitch.c
+	@rm -f .result.log
+	@for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \
+                ./a.out | tee -a .result.log ; \
         done
-	@rm -f ./a.out
+	@./stat.py .result.log
+	@rm -f a.out .result.log
 
 ctxswitch-thread$(EXEEXT):
-	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 ThrdCtxSwitch.c
-	@for number in 1 2 3 4 5 6 7 8 9 10; do \
-                ./a.out ; \
+	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 ThrdCtxSwitch.c
+	@rm -f .result.log
+	@for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \
+                ./a.out | tee -a .result.log ; \
         done
-	@rm -f ./a.out
+	@./stat.py .result.log
+	@rm -f a.out .result.log
 
 sched-int$(EXEEXT):
-	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 SchedInt.c
-	@for number in 1 2 3 4 5 6 7 8 9 10; do \
-                ./a.out ; \
+	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 SchedInt.c
+	@rm -f .result.log
+	@for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \
+                ./a.out | tee -a .result.log ; \
         done
-	@rm -f ./a.out
+	@./stat.py .result.log
+	@rm -f a.out .result.log
 
 monitor$(EXEEXT):
-	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 Monitor.c
-	@for number in 1 2 3 4 5 6 7 8 9 10; do \
-                ./a.out ; \
+	${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 Monitor.c
+	@rm -f .result.log
+	@for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \
+                ./a.out | tee -a .result.log ; \
         done
-	@rm -f ./a.out
+	@./stat.py .result.log
+	@rm -f a.out .result.log
 
 csv-data$(EXEEXT):
-	@${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -quiet -DN=10000000 csv-data.c
+	@${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -quiet -DN=50000000 csv-data.c
 	@./a.out
 	@rm -f ./a.out
Index: src/benchmark/stat.py
===================================================================
--- src/benchmark/stat.py	(revision 21a1efb16da9a4e2b7d1a53dcfcd1d812920d346)
+++ src/benchmark/stat.py	(revision 21a1efb16da9a4e2b7d1a53dcfcd1d812920d346)
@@ -0,0 +1,20 @@
+#!/usr/bin/python
+
+import sys
+import numpy
+
+if len(sys.argv) != 2 :
+	sys.exit("Expected file name as only argument")
+
+try:
+	with open(sys.argv[1]) as f:
+		content = f.readlines()
+		content = [x.strip() for x in content]
+		content = [int(x) for x in content]
+		content.remove(max(content))
+		content.remove(min(content))
+		print "median {0} avg {1} stddev {2}".format( numpy.median(content), numpy.mean(content), numpy.std(content) )
+
+
+except IOError as e:
+	sys.exit(e.strerror)
