Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

Commit

Permalink
Updating run.sh to include saving the output csv + saving output
Browse files Browse the repository at this point in the history
PR-URL: #194
Reviewed-By: Michael Dawson <mhdawson@ca.ibm.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
gareth-ellis committed Feb 10, 2018
1 parent aa164f9 commit 2e39126
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions experimental/benchmarks/community-benchmark/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ case $USE_CASE in
esac

# build master
./configure
make -j${MACHINE_THREADS}
./configure > ../node-master-build.log
make -j${MACHINE_THREADS} >> ../node-master-build.log
mv out/Release/node ./node-master

# build pr
Expand All @@ -83,8 +83,8 @@ case $USE_CASE in
git checkout $TARGET
;;
esac
./configure
make -j${MACHINE_THREADS}
./configure > ../node-pr-build.log
make -j${MACHINE_THREADS} >> ../node-pr-build.log
mv out/Release/node ./node-pr
if [ -n "$FILTER" ]; then
FILTER="--filter ${FILTER}"
Expand All @@ -93,5 +93,10 @@ if [ -n "$RUNS" ]; then
RUNS="--runs ${RUNS}"
fi
# run benchmark
./node-master benchmark/compare.js --old ./node-master --new ./node-pr $FILTER $RUNS -- $CATEGORY | tee output.csv
cat output.csv | Rscript benchmark/compare.R
fileName=output`date +%d%m%y-%H%M%S`.csv
echo "Output will be saved to $fileName"
pwd
./node-master benchmark/compare.js --old ./node-master --new ./node-pr $FILTER $RUNS -- $CATEGORY | tee $fileName

cat $fileName | Rscript benchmark/compare.R
mv $fileName $startDir

0 comments on commit 2e39126

Please # to comment.