Skip to content

Commit

Permalink
revert tee usage
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Fenoll <[email protected]>
  • Loading branch information
fenollp committed May 10, 2021
1 parent d148130 commit 3670feb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ for benchmark in ${BENCHMARKS_TO_RUN}; do
--qps="${GRPC_CLIENT_QPS}" \
--duration "${GRPC_BENCHMARK_DURATION}" \
--data-file /payload/"${GRPC_REQUEST_PAYLOAD}" \
127.0.0.1:50051 | tee "${RESULTS_DIR}/${NAME}".report
127.0.0.1:50051 >"${RESULTS_DIR}/${NAME}".report
cat "${RESULTS_DIR}/${NAME}".report | grep "Requests/sec" | sed -E 's/^ +/ /'

kill -INT %1 2>/dev/null
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for benchmark in ${BENCHMARKS_TO_BUILD}; do
echo "==> Building Docker image for ${benchmark}..."
( (
DOCKER_BUILDKIT=1 docker image build --force-rm --file "${benchmark}/Dockerfile" \
--tag "${benchmark##*/}" . | tee "${benchmark}.tmp" 2>&1 &&
--tag "${benchmark##*/}" . >"${benchmark}.tmp" 2>&1 &&
rm -f "${benchmark}.tmp" &&
echo "==> Done building ${benchmark}"
) || (
Expand Down
2 changes: 1 addition & 1 deletion collect_stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ while true; do
(docker stats \
--no-stream \
--format "table {{.CPUPerc}}\t{{.MemUsage}}" \
"${NAME}" | grep -v CPU) | tee --append "${REPORT_DIR}"/"${NAME}".stats 2>/dev/null || break
"${NAME}" | grep -v CPU) >>"${REPORT_DIR}"/"${NAME}".stats 2>/dev/null || break
sleep 5 || break
done

0 comments on commit 3670feb

Please sign in to comment.