Skip to content
This repository was archived by the owner on Nov 28, 2020. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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