#!/usr/bin/env bash # Network measurements for one live app, from docs-t1: the shared suite, # time to first byte (empty and 50 items), page weight, then the six load # runs. Run apps one at a time, never in parallel. # scripts/measure-live.sh set -euo pipefail slug=$1 cd "$(dirname "$0")/.." url=https://$(cd harness && go run ./cmd/host "$slug") out=$(mktemp -d -p "${TMPDIR:-$HOME/.cache}") trap 'rm -rf "$out"' EXIT scripts/test-app.sh "$url" "$out/suite.json" >/dev/null 2>&1 || true bakeoff behaviour --slug "$slug" --file "$out/suite.json" bakeoff ttfb --slug "$slug" bakeoff weight --slug "$slug" ulimit -n 8192 2>/dev/null || true bakeoff load --slug "$slug"