Commit c64360d1 authored by Florian Fischer's avatar Florian Fischer
Browse files

add script to export the results as dataref

parent ce03d9b7
Pipeline #82994 passed with stage
in 1 minute and 1 second
#!/bin/sh
set -e
RES_DIR="${1:-results/ma}"
THROUGHPUT_DIR="${RES_DIR}"/throughput
LATENCY_DIR="${RES_DIR}"/latency
LATENCY_RUN="2"
LATENCIES="latencies.${LATENCY_RUN}.csv"
./parse_results.py "${THROUGHPUT_DIR}" --desc-stats median --dataref
SERVER_STATS="total-scheduled-fibers-to-local total-scheduled-fibers-to-mpsc-queue \
sleep-percentage total-next-fiber-hint-io total-next-fiber-stolen \
total-next-io-fiber-stolen completer-reaped-completions"
./parse_server_stats.py "${THROUGHPUT_DIR}" --variables ${SERVER_STATS} --desc-stats mean \
| sed 's|drefset[^/]*/|&throughput/|g'
./plot_tail_latency.py --summarize --dataref "${LATENCY_DIR}"/*/$LATENCIES
for d in "${LATENCY_DIR}"/*; do
[[ ! -d "${d}" ]] && continue
impl="$(basename "${d}")"
tail -2 "${d}"/${LATENCY_RUN}.*perf_energy.txt | while read -r line; do
val=$(echo "$line" | cut -d',' -f 1)
key=$(echo "$line" | cut -d',' -f 3)
echo "\drefset[unit=\unit{\joule}]{${impl}/latency/${key}}{${val}}"
done
server_out="${d}/${LATENCY_RUN}.out"
for key in sleep-percentage hint-io next{,-io}-fiber-stolen; do
val="$(grep ${key} "${server_out}" | cut -d' ' -f 2)"
if [[ -n "${val}" ]]; then
echo "\drefset{${impl}/latency/${key}}{${val}}"
fi
done
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment