This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
161 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ pdfs/ | |
.project | ||
.cache-main | ||
.classpath | ||
.settings/ | ||
.settings/ | ||
/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# you must have run the assembly command from sbt for this to work | ||
CLASSPATH=../target/scala-2.11/sandbox-assembly-0.1-SNAPSHOT.jar | ||
# RUNS="10 20 50 100 200 400" | ||
RUNS="100 200 400 800 2000 5000" | ||
|
||
# leave this if you dont want to test clustering | ||
CLUSTER_SEED=localhost:2555 | ||
|
||
# the first options to test | ||
OPTIONS_ONE="-Dmpservice.use-gmp=true -Dmpservice.use-extractor=true -Dbypass-membership-check=true -Duse-generators-parallel=true -Dakka.cluster.seed-nodes.0=akka.tcp://ClusterSystem@$CLUSTER_SEED" | ||
|
||
# the second options to test | ||
OPTIONS_TWO="-Dmpservice.use-gmp=false -Dmpservice.use-extractor=true -Dbypass-membership-check=true -Duse-generators-parallel=true -Dakka.cluster.seed-nodes.0=akka.tcp://ClusterSystem@$CLUSTER_SEED" | ||
|
||
# space sperated list of vote counts to run | ||
RUNS="100 200" | ||
|
||
# note that previous runs are not deleted, this allows incrementally adding data to the file | ||
# but you must manually delete it if you want to overwrite | ||
cp ./times.dat ./times.dat.bak 2>/dev/null || : | ||
|
||
# run it | ||
for votes in $RUNS | ||
do | ||
echo running votes = $votes | ||
# time=`java -classpath $CLASSPATH ElectionTest $votes | grep -Po '(?<=mixTime: )[^\] ]*'` | ||
time_gmp=`java -classpath $CLASSPATH ElectionTest $votes gmp | grep -Po '(?<=mixTime: )[^\] ]*'` | ||
echo $votes $time_gmp | ||
echo $votes $time_gmp >> times.dat | ||
done | ||
time1=`java $OPTIONS_ONE -classpath $CLASSPATH ElectionTest $votes | grep -Po '(?<=mixTime: )[^\] ]*'` | ||
time2=`java $OPTIONS_TWO -classpath $CLASSPATH ElectionTest $votes | grep -Po '(?<=mixTime: )[^\] ]*'` | ||
echo $votes $time1 $time2 | ||
echo $votes $time1 $time2 >> times.dat | ||
done |