From c2debdaafbf00f10922164fc8d4e2c56232f0fec Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 13 Mar 2020 11:44:08 +0200 Subject: Change: use default values for ./stress script --- stress | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'stress') diff --git a/stress b/stress index 0e4d274..7ec1a46 100755 --- a/stress +++ b/stress @@ -2,8 +2,14 @@ set -eu -NSCEN="$1" -NSTEP="$2" +NSCEN=1000 +NSTEP=100 + +if [ "$#" = 2 ] +then + NSCEN="$1" + NSTEP="$2" +fi ts() { local start="$1" @@ -19,5 +25,8 @@ echo "generate: $(ts "$start")" cargo run -q --bin sp-docgen -- s.md -o s.pdf echo "docgen: $(ts "$start")" -cargo run -q --bin sp-codegen -- s.md -o test.py --run > /dev/null +cargo run -q --bin sp-codegen -- s.md -o test.py echo "codegen: $(ts "$start")" + +python3 ./test.py > /dev/null +echo "run: $(ts "$start")" -- cgit v1.2.1