Skip to content

Commit

Permalink
separate script for analyzing results
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoborges committed Aug 12, 2020
1 parent 7623f2d commit 97c36ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 9 additions & 0 deletions analyze.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
RESULTS_DIR=${RESULTS_DIR:-"${@}"}
echo "-----"
echo "Benchmark finished. Detailed results are located in: ${RESULTS_DIR}"
docker run --name analyzer --rm \
-v "${PWD}/analyze:/analyze:ro" \
-v "${PWD}/${RESULTS_DIR}:/reports:ro" \
ruby:2.7-buster ruby /analyze/results_analyze.rb reports ||
exit 1
8 changes: 1 addition & 7 deletions bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ for benchmark in ${BENCHMARKS_TO_RUN}; do
docker container stop "${NAME}" >/dev/null
done

echo "-----"
echo "Benchmark finished. Detailed results are located in: ${RESULTS_DIR}"
docker run --name analyzer --rm \
-v "${PWD}/analyze:/analyze:ro" \
-v "${PWD}/${RESULTS_DIR}:/reports:ro" \
ruby:2.7-buster ruby /analyze/results_analyze.rb reports ||
exit 1
sh analyze.sh $RESULTS_DIR

echo "All done."

0 comments on commit 97c36ef

Please sign in to comment.