summaryrefslogtreecommitdiff
path: root/stress
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-03-13 11:44:08 +0200
committerLars Wirzenius <liw@liw.fi>2020-03-13 11:44:08 +0200
commitc2debdaafbf00f10922164fc8d4e2c56232f0fec (patch)
tree2a64b3cf288be505d1bbd57aa26dd100f3ec3940 /stress
parent4f40365ee5b42054c500d625d5b402251f4a0fb8 (diff)
downloadsubplot-c2debdaafbf00f10922164fc8d4e2c56232f0fec.tar.gz
Change: use default values for ./stress script
Diffstat (limited to 'stress')
-rwxr-xr-xstress15
1 files changed, 12 insertions, 3 deletions
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")"