summaryrefslogtreecommitdiff
path: root/stress
diff options
context:
space:
mode:
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")"