#!/usr/bin/env bash # Build measurements for one app, in its worktree: cold, warm and # one-line-change builds of the arm64 binary (cold once; warm and edit median of 3), its size, and # the code counts. Run apps one at a time, with nothing else heavy running. # scripts/measure-build.sh [runs] set -euo pipefail slug=$1 runs=${2:-3} cd "$(dirname "$0")/.." source scripts/env.sh dir=.worktrees/$slug/apps/$slug bakeoff code --slug "$slug" --dir "$dir" bakeoff build --slug "$slug" --dir "$dir" --cold-runs 1 --runs "$runs"