summaryrefslogtreecommitdiff
path: root/stress
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-03-13 11:55:57 +0200
committerLars Wirzenius <liw@liw.fi>2020-03-13 11:58:38 +0200
commit10ba53bafa8555b7dd238902e81e12e151e63518 (patch)
tree36efd96538f82409449971cacc25a270f5d35afe /stress
parentc2debdaafbf00f10922164fc8d4e2c56232f0fec (diff)
downloadsubplot-10ba53bafa8555b7dd238902e81e12e151e63518.tar.gz
Change: ./stress to print more tabular results
Diffstat (limited to 'stress')
-rwxr-xr-xstress11
1 files changed, 7 insertions, 4 deletions
diff --git a/stress b/stress
index 7ec1a46..e464496 100755
--- a/stress
+++ b/stress
@@ -20,13 +20,16 @@ ts() {
start="$(ts 0)"
./stressgen s "$NSCEN" "$NSTEP"
-echo "generate: $(ts "$start")"
+gen="$(ts "$start")"
cargo run -q --bin sp-docgen -- s.md -o s.pdf
-echo "docgen: $(ts "$start")"
+doc="$(ts "$start")"
cargo run -q --bin sp-codegen -- s.md -o test.py
-echo "codegen: $(ts "$start")"
+code="$(ts "$start")"
python3 ./test.py > /dev/null
-echo "run: $(ts "$start")"
+run="$(ts "$start")"
+
+printf "| %8d | %8d | %8d | %8d | %8d | %8d |\n" \
+ "$NSCEN" "$NSTEP" "$gen" "$doc" "$code" "$run"