From 10ba53bafa8555b7dd238902e81e12e151e63518 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 13 Mar 2020 11:55:57 +0200 Subject: Change: ./stress to print more tabular results --- stress | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'stress') 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" -- cgit v1.2.1