Skip to content

Commit

Permalink
bench
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed Nov 24, 2016
1 parent db59bff commit fe023c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions benchmark/README.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Parasim Benchmark

WARNING: Distributed computation is now deprecated.

In order to run benchmarks, parasim must be built using the `installDist` command.

This folder contains tool to benchmark Parasim. Configuration files are placed
in the `config` directory and are written for execution on `anna.fi.muni.cz`.

Expand Down
6 changes: 3 additions & 3 deletions benchmark/bench.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
SELF=`readlink -f $0`
SELF_DIR=`dirname $SELF`
SELF_DIR=`pwd` #`dirname $SELF`
BENCHMARK_LIST_FILE=$1
set -x

Expand Down Expand Up @@ -46,10 +46,10 @@ for LINE in `cat $BENCHMARK_LIST_FILE`; do
fi

if [[ $CONFIG =~ .*dist.* ]]; then
COMMAND="(time $BASH_EXEC $SELF_DIR/../parasim.sh -e $SELF_DIR/experiments/$EXPERIMENT/benchmark.experiment.properties -b -csv $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/data.csv -c $SELF_DIR/configs/$CONFIG.xml > $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/log.txt) 2> $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/time.txt";
COMMAND="(time $BASH_EXEC $SELF_DIR/../application/build/install/parasim/bin/parasim -e $SELF_DIR/experiments/$EXPERIMENT/benchmark.experiment.properties -b -csv $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/data.csv -c $SELF_DIR/configs/$CONFIG.xml > $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/log.txt) 2> $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/time.txt";
else
LAST_PROC=$((2*CONFIG_SIZE-1))
COMMAND="(time taskset -c 0-$LAST_PROC $BASH_EXEC $SELF_DIR/../parasim.sh -e $SELF_DIR/experiments/$EXPERIMENT/benchmark.experiment.properties -b -csv $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/data.csv -c $SELF_DIR/configs/$CONFIG.xml > $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/log.txt) 2> $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/time.txt";
COMMAND="(time taskset -c 0-$LAST_PROC $BASH_EXEC $SELF_DIR/../application/build/install/parasim/bin/parasim -e $SELF_DIR/experiments/$EXPERIMENT/benchmark.experiment.properties -b -csv $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/data.csv -c $SELF_DIR/configs/$CONFIG.xml > $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/log.txt) 2> $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/time.txt";
fi
echo $COMMAND > $SELF_DIR/results/${EXPERIMENT}__${CONFIG}/command
echo "## computing";
Expand Down
1 change: 1 addition & 0 deletions benchmark/benchmarks-simple.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
parasim-shared-1:lotkav-common

0 comments on commit fe023c6

Please sign in to comment.