#!/bin/sh # # Driver script to run resperf and generate an HTML report of # the results, with graphs. # # Program locations - change these if not in $PATH resperf=resperf gnuplot=gnuplot # Create a unique ID for this report id=`date '+%Y%m%d-%H%M'` # Set up file names reportfile="$id.html" outputfile="$id.output" plotfile="$id.gnuplot" rate_gif="$id.rate.gif" latency_gif="$id.latency.gif" # Run the test $resperf -P "$plotfile" "$@" >"$outputfile" 2>&1 # Create plots $gnuplot <"$reportfile" cat <

Resperf report $id

Resperf output

EOF
cat "$outputfile"
cat <
EOF

cat <Plots

EOF echo "Done, report is in $reportfile" >&2