carlos / todomvc-bakeoff Public

Clone
git clone https://amadan.net/carlos/todomvc-bakeoff

Plain git — no account needed to clone.

Download

Download this file

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