diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-03-13 11:44:08 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-03-13 11:44:08 +0200 |
commit | c2debdaafbf00f10922164fc8d4e2c56232f0fec (patch) | |
tree | 2a64b3cf288be505d1bbd57aa26dd100f3ec3940 /stress | |
parent | 4f40365ee5b42054c500d625d5b402251f4a0fb8 (diff) | |
download | subplot-c2debdaafbf00f10922164fc8d4e2c56232f0fec.tar.gz |
Change: use default values for ./stress script
Diffstat (limited to 'stress')
-rwxr-xr-x | stress | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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")" |