Clean up at the end of a benchmark run, before the next one, in multi-sources mode; and remove the output files before starting each measurement.

This commit is contained in:
Andrew Wood
2026-05-31 01:43:54 +01:00
parent 0331673e02
commit 85918358a5
+2
View File
@@ -204,6 +204,7 @@ gatherMeasurements () {
dataSize=$((dataSize*testFileMB))
fi
rm -f "${workDir}/output1" "${workDir}/output2"
captureTimes "${dataSize}" "${activeCommand}"
resultsLine "${measurementId}" "${measurementName}"
done
@@ -300,6 +301,7 @@ END { printf "%s\t%s", "σ", mId; for (field=1; field<=fieldcount; field++) { pr
sed "s!^!${outputPrefix}\t!" "${workDir}/mean" "${workDir}/stddev"
done
} < "${workDir}/measurement-ids"
rm -f "${workDir}/file1" "${workDir}/file2" "${workDir}/output1" "${workDir}/output2"
}
# Reformat data on stdin so that each (whitespace-separated) column is