Skip to content

Commit

Permalink
Add missing column specifiers in gnuplot latency script
Browse files Browse the repository at this point in the history
  • Loading branch information
shino committed Dec 18, 2015
1 parent dfdafc8 commit 87f2f8f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion priv/gp_latencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,25 @@ function plot_per_op_kind() {
OPERATION=$1
FILE=$2
KIND=$3
DISPLAY_SCALE=1000
case "${KIND}" in
"min") COL_POS=4 ;;
"mean") COL_POS=5 ;;
"medean") COL_POS=6 ;;
"95th") COL_POS=7 ;;
"99th") COL_POS=8 ;;
"99.9th") COL_POS=9 ;;
"max") COL_POS=10 ;;
"errors")
# This column is count, not time duration.
# Be Careful about / Don't get fooled by vertical axis label.
# It may be useful to use options "-k errors" to dispaly
# this column only and "-p" to set the label.
COL_POS=11
DISPLAY_SCALE=1 ;;
*) Usage ;;
esac
echo " \"${FILE}\" using 1:(\$${COL_POS}/1000) with \\"
echo " \"${FILE}\" using 1:(\$${COL_POS}/${DISPLAY_SCALE}) with \\"
echo " ${PLOT_STYLE} \\"
# If plotting only 1 directory, do not add its name
if [ "${TEST_DIR}" == "${THIS_TEST_DIR}" ]; then
Expand Down

0 comments on commit 87f2f8f

Please sign in to comment.