summaryrefslogtreecommitdiff
path: root/stress
blob: 0e4d274e7bc7fde49c906412b38e6f93f39ffe2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -eu

NSCEN="$1"
NSTEP="$2"

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")"