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# Build measurements for one app, in its worktree: cold, warm and
3# one-line-change builds of the arm64 binary (cold once; warm and edit median of 3), its size, and
4# the code counts. Run apps one at a time, with nothing else heavy running.
5# scripts/measure-build.sh <slug> [runs]
6set -euo pipefail
7slug=$1 runs=${2:-3}
8cd "$(dirname "$0")/.."
9source scripts/env.sh
10dir=.worktrees/$slug/apps/$slug
11bakeoff code --slug "$slug" --dir "$dir"
12bakeoff build --slug "$slug" --dir "$dir" --cold-runs 1 --runs "$runs"
13