aboutsummaryrefslogtreecommitdiff
path: root/src/scalarproduct/perf_scalarproduct.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/scalarproduct/perf_scalarproduct.sh')
-rwxr-xr-xsrc/scalarproduct/perf_scalarproduct.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/scalarproduct/perf_scalarproduct.sh b/src/scalarproduct/perf_scalarproduct.sh
index 8e356dbc2..29b7b0f3f 100755
--- a/src/scalarproduct/perf_scalarproduct.sh
+++ b/src/scalarproduct/perf_scalarproduct.sh
@@ -2,13 +2,15 @@
2# Computes a simple scalar product, with configurable vector size. 2# Computes a simple scalar product, with configurable vector size.
3# 3#
4# Some results: 4# Some results:
5# SIZE TIME(s) 5# SIZE TIME-H(s) TIME-O(s)
6# 25 10 6# 25 10
7# 50 17 7# 50 17
8# 100 32 8# 100 32 39
9# 200 77
10#
9# 11#
10# Configure benchmark size: 12# Configure benchmark size:
11SIZE=1000 13SIZE=400
12# 14#
13# Construct input vectors: 15# Construct input vectors:
14INPUTALICE="-k CCC -e '" 16INPUTALICE="-k CCC -e '"
@@ -45,6 +47,8 @@ PEERIDBOB=`gnunet-peerinfo -qs $CFGBOB`
45echo "Running problem of size $SIZE" 47echo "Running problem of size $SIZE"
46gnunet-scalarproduct $CFGBOB $INPUTBOB & 48gnunet-scalarproduct $CFGBOB $INPUTBOB &
47time RESULT=`gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB` 49time RESULT=`gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB`
50gnunet-statistics $CFGALICE -s core | grep "bytes encrypted"
51gnunet-statistics $CFGBOB -s core | grep "bytes encrypted"
48 52
49echo "Terminating testbed..." 53echo "Terminating testbed..."
50# terminate the testbed 54# terminate the testbed