summaryrefslogtreecommitdiff
path: root/stress
diff options
context:
space:
mode:
Diffstat (limited to 'stress')
-rwxr-xr-xstress23
1 files changed, 23 insertions, 0 deletions
diff --git a/stress b/stress
new file mode 100755
index 0000000..6ad04ae
--- /dev/null
+++ b/stress
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -eu
+
+NSCEN=1000
+NSTEP=100
+
+ts() {
+ local start="$1"
+ local now="$(date +%s)"
+ echo "$now - $start" | bc
+}
+
+start="$(ts 0)"
+
+./stressgen s "$NSCEN" "$NSTEP"
+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
+echo "codegen: $(ts "$start")"