The charts are on clove.fast/benchmarks. Two benchmarks:
- The suite: how long it takes, and how much disk, to get a worktree ready to work in, on 12 public repos at pinned commits. clove against a plain
git worktree addplus setup, and against worktrunk, git-worktree-runner, wtp and rift. This is where the numbers to quote come from. - Synthetic repo:
bench_newtimesclove new+clove rmstep by step on a generated repo. Use it to catch regressions in the clone path.
The suite
scripts/bench/run is the entry point. It runs locally on macOS and Linux, in an OrbStack or tart VM from a Mac, and in GitHub Actions. Results are JSON files under scripts/bench/results/<machine>/<repo>.json, and scripts/bench/run site turns them into site/src/data/bench-suite.json for the page.
What "ready" means
A worktree is ready when a build or a test run could start in it:
- it exists, on a new branch off
origin/main; - the main checkout's ignored env files (
.env,.env.*,.envrc.local,.dev.vars) are in it; - the repo's setup has run: dependencies installed, codegen done, and the builds its contributing guide runs before work.
The clock starts before the contender's create command and stops when all three are done. For contenders with a post-create hook, that's when the command returns, since every hook used here is synchronous. For the others it includes the setup the harness runs right after.
Then, untimed: the first git status (timed separately), the size of the worktree with du, and the repo's check, a quick command that proves the worktree is usable (the compiler runs, the Python package imports from this worktree and not from the main checkout, the built binary exists). A run whose setup or check fails is recorded as failed, with the error, and left out of the medians.
Fairness rules
- Same machine, one run at a timeEach repo runs alone on the machine; nothing else in the suite runs in parallel.
- Same setupThe harness writes the repo's setup as one script,
setup.sh(it's in each result file). Every contender except clove runs that script, from its own post-create hook where it has one. clove runs the same steps as its configured steps; it skips the ones whose watched inputs didn't change since the golden commit, which is the feature being measured. Builds that clove leaves to the developer (cargo, dotnet, mix, gradle) run afterclove new, inside the timed part. - Same warm cachesBefore any timed run, the full setup runs once in the main checkout. That fills the package managers' caches (pnpm store, yarn, npm, bun, uv, Poetry, Bundler, Composer, Go modules and build cache, Gradle, NuGet, Hex, cargo registry) for everyone, and it's the warm checkout that worktrunk, gtr and rift copy from. Network downloads are not what this measures.
- Warm-up, then interleaved repetitionsEach repetition runs every contender once. The order rotates by one each repetition (A B C, then B C A, ...), so machine noise and cache effects spread over all of them. The first repetition is a warm-up and is left out of the summary. Default: 1 warm-up and 7 timed runs per contender. zed gets 3 timed runs and no warm-up: one build is 10 to 30 minutes, and the main checkout's build already warms everything.
- Same definition of done for all, checked the same way: setup.sh writes a line per step to a log and
okat the end; a run withoutokfailed, whatever the tool's exit code (wtp exits 0 when a hook fails). - Medians and spreadThe summary reports the median, the quartiles (p25, p75), min and max of the timed runs. The raw runs stay in the result file.
- Each tool as its docs recommendConfigs are below and in each result file (
tools.<name>.config). Where a tool can't run on a machine, the result sayssupported: falseand why; there's no number for it.
What disk means
- New disk(
disk_bytes): the drop in free space on the work volume between just before the create command and just after the worktree is ready, measured aftersync. Before each run the harness waits until free space stops moving (deletes on btrfs and APFS finish late). Other processes write to the same volume, so read anything under ~20 MB as "small". - Apparent size(
du_bytes):du -skof the worktree. Copy-on-write copies, clones of the package caches and hardlinks count in full here, so this is what the worktree would cost without sharing. - One-time costsare reported apart:
clove init(time and disk),rift init, and the main checkout's setup.
Repos
The steps start from what clove init detects at the pinned commit. Detected steps that fail or that contributors don't run are dropped, with the reason in scripts/bench/suite/repos.py. The build and codegen steps each contributing guide runs before work are added. The exact list per repo is in each result file (setup.steps).
| repo | toolchains | why it's here |
|---|---|---|
| vercel/next.js | pnpm, turbo | The largest JS monorepo here: pnpm workspaces and turbo, 35k tracked files. |
| calcom/cal.com | yarn, Prisma | A yarn (Berry) monorepo whose install writes 5 GB. |
| microsoft/TypeScript | npm | Few dependencies, 70k tracked files, and a compiler build before work. |
| monicahq/monica | Composer, PHP, bun | A Laravel app: Composer, bun and a Vite build. |
| apache/airflow | uv, pnpm, npm, Go, Gradle | A Python monorepo with two React UIs and Go and Java SDKs: twelve steps. |
| python-poetry/poetry | Poetry | One poetry install: the small Python case. |
| mastodon/mastodon | Bundler, yarn | A Rails app with native gems and a yarn front end. |
| go-gitea/gitea | Go, pnpm, uv | A Go server with a pnpm front end, both built by make build. |
| mockito/mockito | Gradle, Java | Java on Gradle, with its build cache on: a library most JVM projects test with. |
| jellyfin/jellyfin | .NET | dotnet restore and dotnet build of a 40-project solution. |
| livebook-dev/livebook | Mix, bun | An Elixir app: Mix deps, compile, and assets. |
| zed-industries/zed | cargo | A large Rust workspace with a 20 GB target/. |
What each runs, beyond the detected installs:
- next.js: dropped the three detected
cargo builds (its guide has contributors use the prebuilt SWC binary; the Turbopack workspace takes hours). Addedpnpm build.NEXT_SKIP_NATIVE_POSTINSTALL=0lets the install fetch the SWC binary as on a laptop. - cal.com: dropped
bun installinpackages/embeds/embed-core, a yarn workspace member with a straybun.lock, which fails. Detection now leaves workspace members to their workspace. Prep:.envfrom.env.examplewith generated secrets, as its README says.yarn dxneeds Docker and a database, so it's out. - TypeScript: added
npx hereby local, its guide's build of the compiler (hereby is its build tool). - monica: added
bun run build(the Vite assets). Prep:.envwith a generatedAPP_KEY. Migrations need a database and are out. - airflow: added the UI assets (
compile_ui_assets.py). They live five levels down, past the three levels detection looked at when this ran; it now looks at any depth, but the builds are still steps to add. Python pinned to 3.12 withUV_PYTHON. System libraries from its guide are installed by the provisioning scripts. - poetry: nothing added.
POETRY_VIRTUALENVS_IN_PROJECT=truefor everyone, as clove sets for Poetry steps, so each worktree gets its own.venvinstead of one per path in Poetry's cache. - mastodon: nothing added:
bundle installandyarn install. The database setup is out. - gitea: dropped the detected direnv and nix steps (its
.envrcloads a nix flake its guide doesn't require). Addedmake build. - mockito: added
./gradlew assemble. clove doesn't run builds in clones, so for clove it runs afterclove new. It replaced okhttp, whoseassembleneeds the Android SDK. - jellyfin: no
packages.lock.json, so clove detects nothing. Added its guide'sdotnet restore(every clone, as clove's dotnet toolchain does, sinceobj/holds absolute paths) anddotnet build, which runs afterclove new. - livebook: dropped the detected Mix installs in
iframe/andproto/, whichmix setupdoesn't touch. Addedmix assets.setup;mix compileruns afterclove new. - zed: the detected
cargo build --workspace --all-targetsbecamecargo build(what its guide'scargo runbuilds). Dropped the Danger install (CI only, fails) and a maintainer script'suv sync.cargo buildruns afterclove new.
prefect, in the earlier version of this benchmark, is out: uv is covered by airflow, and poetry is the small Python case now.
Contenders
Versions are pinned in scripts/bench/provision/versions.env.
| contender | version | how it gets a worktree ready |
|---|---|---|
git worktree add + setup |
git | git worktree add -b, copy the env files, run setup.sh. The baseline. |
| clove | this checkout | clove new <branch> --no-fetch, spare off; then the repo's after_new builds. |
| clove (spare) | this checkout | the same with a spare clone mounted ahead of time, untimed. macOS only. |
| worktrunk | 0.83.0 | wt switch --create, with wt step copy-ignored (reflinks every ignored file from the main checkout) and setup.sh as pre-start hooks. |
| git-worktree-runner | 3.1.0 | git gtr new, with gtr.copy.include for the env files, gtr.copy.includeDirs for the dependency folders, and setup.sh as gtr.hook.postCreate. |
| wtp | 2.11.1 | wtp add -b, with .wtp.yml post_create hooks: copy the env files, run setup.sh. |
| rift | 0.0.13 | rift init once; rift create --copy-all makes a copy-on-write copy of the warm main checkout; then git switch -c and setup.sh. |
Choices, and why:
- worktrunkrecommends
post-starthooks, but they run in the background, sowt switchwould return before anything is installed.pre-startruns the same hooks and blocks, which is what "ready" needs. Hooks are in a user config (WORKTRUNK_CONFIG_PATH), so no approval prompt. Removal uses--foreground. - git-worktree-runner:
includeDirslists the ignored dependency folders found in the main checkout (node_modules,.venv,vendor,target,_build,deps,obj,bin,build,dist, ...). gtr copies them withcp -c(clonefile) on macOS andcp --reflink=autoon Linux. Its settings go in the repo's.git/config, which needs nogtr trust. - wtpcopies with a plain byte copy that follows symlinks, so copying a pnpm
node_modulesfails and copying anynode_modulescosts its full size. Its README's setup copies.envand runs the install; that's what it does here. - riftmakes a copy of the whole directory,
.gitincluded, not a git worktree, and creates no branch: the harness runsgit switch -cin the copy, timed.--copy-allcopies ignored folders too; rift's default leaves outnode_modules,target,.venvand other build folders. It needs reflinks: on Linux only btrfs or XFS (rift initturns the checkout into a btrfs subvolume), and it ships no linux-arm64 binary (the provisioning builds the tag). It haspostcreatehooks; runningsetup.shright after create is the same. - Left out: gwq copies with a plain copy and skips symlinked folders, like wtp; git-twig reflinks tracked files but copies no ignored files and has no hooks, so with setup it's the baseline. grove, cow and ovnfs are macOS-only or need a daemon.
Machines
Every result file records its machine (machine in the file): OS and version, CPU, CPUs and memory the run saw, the Mac it ran on for a VM, the runner for CI, and the file system of the work folder.
- Linux, OrbStack: an Ubuntu 24.04 machine in OrbStack on an Apple M4 Max Mac (64 GB). OrbStack's machines share one VM, here with 8 GB of memory. The work folder is on OrbStack's btrfs, so reflinks work: worktrunk, gtr and rift copy for free. On ext4 (a GitHub runner, most Linux laptops), worktrunk and gtr fall back to full copies and rift doesn't run.
- macOS, tart: a macOS VM in tart on the same Mac. clove mounts disk images, which is fine in a VM and prompts nobody.
- GitHub Actions:
macos-26(3 vCPU, 7 GB) andubuntu-24.04(4 vCPU, 16 GB, ext4) runners. Small and noisy; one clove release measured twice as slow on one run as on another. Use them as a cross-check, not as the headline.
Results
Medians of the timed runs. Every result file also has the quartiles, min, max and the raw runs. n/a: the contender can't run there. fail: every run failed. *: some runs failed. (partial): the repo hasn't finished all its runs. clove is built from this branch at the time of the run; it reports 0.1.22, and each result file has the commit (clove_commit).
Linux has all 12 repos. macOS has 8: typescript has part of its runs, and cal.com, airflow and zed haven't run yet. They'll be added here and on the page when the suite resumes.
Linux
orb: the OrbStack machine (15 CPUs, 8 GB shared with other OrbStack containers, btrfs). tart: a tart Ubuntu 24.04 VM on the same Mac (10 vCPUs, 32 GB, btrfs data disk). cal.com, airflow and zed ran in tart because OrbStack's 8 GB ran out on cal.com's install. poetry ran on both as a cross-check.
Time to ready:
| repo | vm | worktree | clove | worktrunk | gtr | wtp | rift |
|---|---|---|---|---|---|---|---|
| next.js | orb | 4.7s | 136ms | 5.6s | 4.9m | 4.7s | 14s |
| cal.com | tart | 44s | 137ms | 15s | 18s | 43s | 11s |
| typescript | orb | 2.1m | 58ms | 2.1m | 2.1m | 2.1m | 2.1m |
| monica | orb | 3.4s | 58ms | 2.7s | 2.7s | 3.4s | 2.1s |
| airflow | tart | 38s | 208ms | 20s | 32s | 38s | fail |
| poetry | orb | 1.3s | 38ms | 531ms | 644ms | 1.4s | 413ms |
| poetry | tart | 1.5s | 141ms | 550ms | 669ms | 1.5s | 459ms |
| mastodon | orb | 4.9s | 66ms | 2.4s | 2.6s | 4.9s | 1.3s |
| gitea | orb | 13s | 58ms | 14s | 13s | 13s | 3.2s |
| mockito | orb | 17s | 8.8s | 16s | 16s | 17s | 16s |
| jellyfin | orb | 44s | 44s | 44s | 45s | 45s | 45s |
| livebook | orb | 31s | 3.6s | 10s | 10s | 31s | 9.4s |
| zed | tart | 2.6m | 1.8m | 1.7m | 2.7m | 2.7m | 21s |
New disk per worktree:
| repo | vm | worktree | clove | worktrunk | gtr | wtp | rift |
|---|---|---|---|---|---|---|---|
| next.js | orb | 584M | 5.2M | 666M | 689M | 583M | 2.6G |
| cal.com | tart | 2.8G | 1.0M | 291M | 291M | 2.8G | 92M |
| typescript | orb | 5.7G | 928K | 5.7G | 5.7G | 5.7G | 5.4G |
| monica | orb | 366M | 708K | 110M | 113M | 366M | 672K |
| airflow | tart | 425M | 0 | 394M | 417M | 425M | fail |
| poetry | orb | 150M | 484K | 14M | 14M | 150M | 188K |
| poetry | tart | 145M | 944K | 8.9M | 8.9M | 145M | 0 |
| mastodon | orb | 723M | 2.0M | 152M | 155M | 723M | 1.6M |
| gitea | orb | 609M | 1.1M | 636M | 639M | 608M | 548M |
| mockito | orb | 68M | 15M | 68M | 68M | 68M | 62M |
| jellyfin | orb | 73M | 61M | 76M | 74M | 24M | 52M |
| livebook | orb | 184M | 720K | 69M | 72M | 184M | 19M |
| zed | tart | 22G | 15G | 1.1G | 20G | 22G | 1.5G |
macOS
A macOS 26.6 VM in tart on the same Mac (10 vCPUs, 32 GB, APFS). spare is clove with a spare clone mounted ahead of time, untimed. typescript is partial: 3 of its 5 timed runs per contender are done.
Time to ready:
| repo | worktree | clove | spare | worktrunk | gtr | wtp | rift |
|---|---|---|---|---|---|---|---|
| next.js | 30s | 959ms | 437ms | 45s | 44s | 31s | 21s |
| typescript (partial) | 2.3m | 702ms | 186ms | 2.3m | 2.3m | 2.3m | 2.4m |
| monica | 6.5s | 433ms | 177ms | 7.9s | 9.6s | 6.4s | 6.5s |
| poetry | 1.4s | 434ms | 151ms | 806ms | 1.6s | 1.5s | 418ms |
| mastodon | 6.2s | 546ms | 202ms | 5.0s | 7.4s | 6.2s | 2.0s |
| gitea | 15s | 539ms | 195ms | 17s | 18s | 15s | 2.3s |
| mockito | 17s | 9.7s | 9.5s | 17s | 18s | 17s | 17s |
| jellyfin | 41s | 41s | 40s | 41s | 43s | 41s | 41s |
| livebook | 34s | 4.1s | 3.7s | 12s | 14s | 34s | 10s |
New disk per worktree:
| repo | worktree | clove | spare | worktrunk | gtr | wtp | rift |
|---|---|---|---|---|---|---|---|
| next.js | 718M | 13M | 12M | 612M | 614M | 718M | 323M |
| typescript (partial) | 6.3G | 4.8M | 4.7M | 6.3G | 6.3G | 6.3G | 5.9G |
| monica | 414M | 3.7M | 3.6M | 92M | 92M | 414M | 16M |
| poetry | 132M | 3.9M | 3.8M | 13M | 13M | 132M | 1.7M |
| mastodon | 884M | 5.6M | 5.6M | 136M | 136M | 884M | 22M |
| gitea | 695M | 3.8M | 3.7M | 692M | 692M | 695M | 20M |
| mockito | 72M | 71M | 71M | 72M | 72M | 72M | 65M |
| jellyfin | 77M | 59M | 60M | 78M | 77M | 77M | 54M |
| livebook | 154M | 16M | 16M | 45M | 45M | 154M | 31M |
GitHub runners (cross-check)
Five repos, 5 timed runs, on ubuntu-24.04 (4 vCPUs, ext4: rift doesn't run, worktrunk and gtr copy in full) and macos-26 (3 vCPUs). macOS next.js and cal.com hit the 6-hour job limit before the last runs, mostly in gtr (47 and 75 minutes per worktree), so their medians come from fewer runs.
Time to ready, Ubuntu:
| repo | worktree | clove | worktrunk | gtr | wtp |
|---|---|---|---|---|---|
| next.js | 10s | 233ms | 25s | 21.1m | 11s |
| cal.com | 66s | 71ms | 51s | 25.3m | 70s |
| monica | 8.4s | 35ms | 7.3s | 7.8s | 8.6s |
| poetry | 1.9s | 28ms | 837ms | 1.1s | 1.9s |
| gitea | 37s | 47ms | 38s | 38s | 37s |
Time to ready, macOS:
| repo | worktree | clove | spare | worktrunk | gtr | wtp | rift |
|---|---|---|---|---|---|---|---|
| next.js (partial) | 57s | 2.0s | 631ms | 96s | 47.7m | 50s | 38s |
| cal.com (partial) | 3.3m | 3.3s | 635ms | 100s | 75.3m | 2.8m | 72s |
| monica | 20s | 909ms | 214ms | 17s | 18s | 16s | 9.5s |
| poetry | 3.3s | 718ms | 210ms | 1.7s | 3.5s | 2.4s | 740ms |
| gitea | 48s | 790ms | 252ms | 60s | 66s | 51s | 5.1s |
What the numbers say
- When the setup is installs and codegen, clove skips itOn next.js, cal.com, TypeScript, monica, airflow, poetry, mastodon and gitea,
clove newfinds that no watched input changed since the golden commit and runs nothing. That's 40 to 210 ms on Linux and 0.4 to 1 s on macOS (150 to 450 ms with a spare), and 1 to 15 MB of new disk. The others take seconds to minutes and write 100 MB to 6 GB per worktree. - Copying the warm checkout's dependencies helps on a file system with reflinksworktrunk and gtr copy the ignored folders with reflinks or clonefile, then run the same setup, which finds little to do. cal.com drops from 44 s to 15 to 18 s on Linux btrfs, mastodon from 4.9 s to 2.5 s. On ext4 (the GitHub runner) they copy in full and save nothing: cal.com takes 51 s and 5.1 GB with worktrunk.
- Copying folder by folder gets slow with many foldersgtr copies each of next.js's 85 dependency folders on its own: 4.9 min per worktree on Linux, 21 min on the Ubuntu runner, 47 min on the macOS runner. worktrunk's parallel per-file reflinks take 5.6 s on Linux.
- rift is the closest to cloveIt makes one copy-on-write copy of the warm checkout, build outputs included. gitea's
make buildthen finds its binary up to date (2 to 3 s against 13 to 15 s), and zed'scargo buildtakes 21 s on Linux. A rift copy isn't a git worktree, though: it has its own.git, and commits made there stay there. It needs btrfs or XFS on Linux. On airflow every run failed: in the copy, pnpm 10 decides to purge a project'snode_modules, asks for confirmation, and aborts without a terminal. - wtp is the baseline plus a hookIt copies the env files and runs the same setup, so its numbers match
git worktree add. - Builds that clove leaves to the developer still cost somethingclove carries the golden image's build output into the clone, and the build does what's left. Gradle in mockito takes 9 s against 16 to 17 s,
mix compilein livebook 4 s against 10 to 34 s. jellyfin'sdotnet restoreanddotnet buildtake the same 40 to 45 s for every contender:obj/holds absolute paths, so restore runs in every clone and the build starts over. - TypeScript's Go build doesn't follow worktreesGo keys its build cache on each package's directory unless
-trimpathis set, so every new worktree compiles the compiler again: over 2 min and 6 GB for every contender. clove skips the build step, since nothing it watches changed, and reuses the golden image's binary. clove initcosts about one setup of the main checkoutIt's paid once per repo, and again when the golden image is refreshed. The times are in each result file (one_time) and on each repo card.
clove issues found
- zed rebuilds a lot in a cloneOn Linux,
cargo buildin a fresh clone recompiled 234 crates (1.8 min, 15 GB), against 21 s and 1.5 GB in a rift copy of the same checkout. Some crates' build outputs record paths into the golden image, so cargo sees them as out of date in the clone. This is a known clove issue and we're working on it. - Detection ran steps in the wrong orderlivebook's
assets/package.jsondepends onfile:../deps/phoenix, whichmix deps.getcreates. Detection puts the JS group before Elixir, sobun installinassets/runs first and fails. - Detection picks up builds contributors don't runnext.js: three Rust workspaces. livebook: the Tauri desktop app (
rel/app/src-tauri). zed:--workspace --all-targets. gitea: direnv and nix steps from an.envrcthat loads a nix flake its guide doesn't require. - Detection misses projects without a lockfile clove knowsjellyfin has no
packages.lock.json, so nothing is detected; its guide'sdotnet restoreanddotnet buildwere added by hand. airflow's UIs sat past the three levels detection looked at when it ran; detection now looks at any depth.
Caveats
- Different machinesLinux results come from two VMs on the same Mac (the
vmcolumn). Compare contenders within a row, not rows across machines. poetry ran on both: clove took 38 ms in OrbStack and 141 ms in tart, the others within 15%. - Warm cachesThe package caches are warm, as on a laptop that has worked on the repo before. A lockfile change means downloads for every contender, clove included, and this suite doesn't time them.
- "Ready" stops before servicesAnything that needs Docker or a database (cal.com's
yarn dx, mastodon's and monica's migrations) is left out for everyone. - Disk is free space on the volume, which other processes also touch, so read anything under ~20 MB as small. On btrfs, deletes free their space late. The harness waits for free space to settle before each run, and a few runs still show a small negative number. Go's build cache grows by the TypeScript compiler's 5 GB per worktree; the harness deletes each run's additions afterwards, so every run starts from the same cache.
- Build servers are offjellyfin runs with
UseSharedCompilation=falseand no MSBuild node reuse, and mockito without the Gradle or Kotlin daemon, for every contender. Left on, they keep compiling in the background into the next contender's run. A developer usually has them on, so absolute build times are higher than on a laptop. - rift on airflow is recorded as a failureWith
CI=truepnpm would purge without asking, but that changes the other tools' behavior too.
Rerun it
Linux, in OrbStack from a Mac:
orb create ubuntu:noble clove-bench
orb -m clove-bench bash -c "$PWD/scripts/bench/provision/linux.sh"
scripts/bench/run --target orb --machine linux-orbstack --resume # all repos
scripts/bench/run --target orb --machine linux-orbstack --repos poetry,gitea --tools clove,worktrunk--target orb copies this checkout into the machine, builds clove there, runs the suite and writes results back into scripts/bench/results/. It never touches your ~/.clove.
macOS, in a tart VM (clove mounts disk images; run that in a VM, not on your Mac):
tart clone ghcr.io/cirruslabs/macos-tahoe-base:latest clove-bench-macos
tart set clove-bench-macos --cpu 10 --memory 32768 --disk-size 200
tart run clove-bench-macos --no-graphics --dir=clove:$PWD &
tart exec clove-bench-macos bash -c '"/Volumes/My Shared Files/clove/scripts/bench/provision/macos.sh"'
scripts/bench/run --target tart --machine macos-tart --resumeOn a Linux machine or a macOS VM directly (BENCH_IN_VM=1 on macOS):
scripts/bench/provision/linux.sh # or macos.sh
cargo build --release -p clove-cli && export PATH="$PWD/target/release:$PATH"
scripts/bench/run --machine my-laptop --repos next.js --runs 7In GitHub Actions, one job per repo and OS:
scripts/bench/run --target ci --repos all --ci-os macos,linux # gh workflow run bench-repos.yml
gh run download <run id> -D runs && cp -R runs/*/* scripts/bench/results/Options: --repos a,b|all, --tools a,b|all (git-worktree, clove, clove-spare, worktrunk, gtr, wtp, rift), --runs N, --warmup N, --work DIR (default /var/tmp/clove-bench), --keep (keep the work folder). scripts/bench/run list lists repos and contenders.
Resume. The result file is rewritten after every run. A repo whose file is complete is skipped. With --resume, an unfinished file keeps its runs and the suite picks up at the next missing (repetition, contender); the main checkout and clove init are reused if their work folder survived, else redone. --force reruns complete repos. A repo that fails doesn't stop the others; the run ends with the list to rerun.
Rebuild the site data from every result file:
scripts/bench/run site # writes site/src/data/bench-suite.json
scripts/bench/run doc --os linux --metric ready_s scripts/bench/results/linux-{orbstack,tart} # a table above
scripts/bench/run table # every machine, time and disk togetherEach repo runs in its own folder under the work dir and is deleted when it's done (--keep keeps it). zed needs ~70 GB free while it runs, the others under 20 GB.
Data
Result file (scripts/bench/results/<machine>/<repo>.json, schema clove-bench/1), one per repo and machine:
| key | what |
|---|---|
repo, url, commit, why, toolchains, tracked_files |
the repo |
machine |
id, target (local, orb, tart, ci), os, os_version, arch, cpu, cpus, mem_gb, host (the Mac a VM runs on), model, runner |
fs |
file system of the work folder (btrfs, apfs, ext4) |
clove_commit |
the clove build measured |
plan |
runs, warmup, order |
setup |
detected, dropped (name: reason), added, steps (as clove config), after_new, local_files, dep_dirs, check, setup_sh |
tools.<name> |
url, version, config (text), supported, reason |
one_time |
fetch_s, main_setup_s, main_setup_steps, clove_init_s, clove_init_disk_bytes, clove_init_timings, rift_init_s |
runs[] |
one per (repetition, contender): rep, tool, order, warmup, ok, error, ready_s, create_s, setup_s (when the harness ran setup), steps (seconds per step), disk_bytes, du_bytes, status_s, check_ok, check_s, rm_s, clove (clove new's own timings) |
summary.<tool> |
runs, failed, and {median, p25, p75, min, max, n} for ready_s, disk_bytes, du_bytes, status_s, over the non-warm-up runs that succeeded |
complete, started_at, finished_at |
|
cargo_diagnosis |
zed only: crates cargo recompiles in a fresh clone, and the first reasons |
Site data (site/src/data/bench-suite.json, schema clove-bench-site/1), built by scripts/bench/run site:
| key | what |
|---|---|
tools[] |
id, label, url, versions (per machine id), config |
machines[] |
id, os, target, arch, host, model, runner, cpu, cpus, mem_gb, os_version, fs |
repos[] |
id, url, commit, why, toolchains, tracked_files, steps, detected, dropped, added, after_new, check |
results[] |
one per repo, machine and tool: repo, machine, os, tool, supported, reason, complete, runs, failed, ready_s, disk_bytes, du_bytes, status_s (each {median, p25, p75, min, max, n} or null), raw[] (ready_s, disk_bytes, ok, error per timed run) |
one_time[] |
per repo and machine: clove_init_s, clove_init_disk_bytes, rift_init_s, main_setup_s, fetch_s, clove_version, clove_commit, plan, started_at, finished_at |
Times are seconds, sizes bytes. A contender that can't run on a machine has supported: false and a reason, and null stats.
Synthetic repo
bench_new times clove new + clove rm cycles, step by step, on a throwaway repo. Run it before and after a change to the clone path.
cargo run --release -p clove-core --example bench_new # table
cargo run --release -p clove-core --example bench_new -- --json > a.json
cargo run --release -p clove-core --example bench_new -- compare a.json b.jsonOptions: --files N (tracked files, default 5000), --ignored N (files under an ignored node_modules, default 20000), --iterations N (default 10), --warmup N (default 1), --mode cold|spare|both (default both).
What it does:
- builds a bare origin and a checkout in a temp dir, with its own
CLOVE_HOME, clone root andCLOVE_NO_SERVICE=1. Your repos and service are never touched. - runs
clove initonce. Adepsstep's warm copies the ignored tree into the golden image; its setup watchespackage-lock.json, so clones skip it. Anenvsetup step runs in every clone. - times each cycle through the library, so CLI start-up is not counted.
coldturns the spare off: clone image + mount.sparerefills the spare before each cycle, untimed, then claims it. - reports median, min and max per step.
new otherandrm otherare the time outside any reported step. Forrm, that is the dirty check and stopping fsmonitor and orphan daemons. - ejects every image it attached, on success, error or Ctrl-C.
macOS only for now. Machines are noisy: compare runs from the same machine, back to back, and look at medians. mount and rm unmount swing by hundreds of ms between runs.
Numbers
Mac16,6, Apple M4 Max, 64 GB, macOS 27.2, clove 0.1.22 (9cdbcd5). Defaults: 5000 files, 20000 ignored, 10 iterations. Init took 11.5 s.
| step | cold | spare |
|---|---|---|
| claim spare | - | 0.4 ms |
| clone image | 0.1 ms | - |
| mount | 864 ms | - |
| checkout | 34 ms | 33 ms |
| copy files | 0.5 ms | 0.5 ms |
| setup env | 9 ms | 9 ms |
| new other | 17 ms | 16 ms |
| new total | 926 ms | 61 ms |
| rm unmount | 491 ms | 569 ms |
| rm delete image | 4 ms | 3 ms |
| rm other | 368 ms | 235 ms |
| rm total | 925 ms | 816 ms |
Per release
The bench workflow times each release's own CLI on GitHub's macos-26 runner, so every release since v0.1.0 is measured the same way. It runs on every release tag (v*) and by hand from Actions. It is macOS only and not a gate.
Workloads
Two synthetic repos, built the same way in every job by site/scripts/bench-release.mjs:
mono, the one the page leads with. 36,000 tracked files in a deep tree (5 top dirs, 60 projects each, 1 to 6 levels below), sizes from 200 B to 25 KB. 100,000 ignored files undernode_modules, from anadd_stepwhose warm copies them into the golden image and whose setup watchesdeps.lock, so clones skip it. A uv project at the root with three editable local packages (setuptools) and auv.lock. Its step is not configured: each release sets it up with the uv step it detects, as it would in a real repo.giton the PATH is/usr/bin/git, the Xcode launcher macOS ships, as on most Macs.small,bench_new's repo: 5,000 tracked files, 20,000 ignored undernode_modules, explicit steps (depswatchingpackage-lock.json, andenv), no uv. Git as the runner has it.
Both have an env setup step that runs in every clone and an ignored .env to copy.
The small repo hides most of what changed: cold clove new on it stays near 0.6 s from v0.1.0 to v0.1.34. The changes were in work that grows with the repo, and the mono workload shows them. Cold clove new medians, with the step clove reports:
| release | cold | with a spare | what changed |
|---|---|---|---|
| v0.1.22 | 4.6 s | - | checkout 1.4 s, uv sync 1.9 s |
| v0.1.23 | 2.5 s | - | checkout 48 ms: no git switch at the golden commit, real git instead of the launcher (#13) |
| v0.1.25 | 3.0 s | 2.2 s | the spare skips the mount; uv sync still runs (#16) |
| v0.1.27 | 0.95 s | 0.22 s | venvs moved in 36 ms instead of uv sync (#20) |
| v0.1.34 | 1.5 s | 0.40 s |
The data also shows two slowdowns: clove rm went from 3.6 s to 6.3 s at v0.1.7 (and 270 to 350 ms on the small repo), and checkout went from about 0.85 s to 1.3 s at v0.1.12 and 1.9 s at v0.1.13, then stayed near 1.5 s until v0.1.23 skipped it. clove init shows no trend on either repo: about 3 to 5 minutes on mono and 11 to 15 s on the small one, with three to six runs per release.
How a release is timed
For each tag, the script:
- Downloads the release asset
clove-<tag>-aarch64-apple-darwin.tar.gz. - Clones the job's copy of the repo and runs
clove init --jsononce. Its wall time isinit. - Runs 1 warm-up and 10 timed cycles of
clove new <branch> --no-fetch --no-cd --jsonthenclove rm <clone> --json, withspare = falsein the personal config (CLOVE_CONFIG): cold. - For releases with a spare (
clove spare --helpworks, v0.1.25 on), the same withspare = true. Before each cycleclove spare --jsonruns until it saysReady, untimed. - Mono only: moves
origin/mainone commit past the golden image (a new file, set withgit update-ref, no fetch) and runs 1 warm-up and 5 cold cycles. That is the case wherenewhas to check out the base.
The clock is wall time around each command, CLI start-up included. Before each timed command the script waits until no process of that release's binary is left, so background work (the spare refill new starts, a deferred removal) never overlaps a timed command.
Each release gets its own CLOVE_HOME, clone root and config file, with CLOVE_NO_SERVICE, CLOVE_NO_AUTO_REFRESH, CLOVE_NO_UPDATE_CHECK, CLOVE_NO_AGENT_HOOKS and CLOVE_NO_AGENT_UPDATE set; a release ignores the ones it doesn't know. stdin is closed, so no release prompts. Afterwards the script ejects every image the release attached and deletes its files.
What differs between releases:
- The flags it uses all exist in v0.1.0:
--json(global),new --no-fetch --no-cdandrm. No--yesor--forceis needed: prompts only show in a terminal, and the clones are clean. - The uv step each release detects: v0.1.0 to v0.1.26 run
uv sync --frozenin every clone; from v0.1.27 the step watchesuv.lock,pyproject.tomland.python-versionand moves the venv instead. v0.1.0 looks foruv.lockat the root only, which is where the repo has it. - From v0.1.34,
clove rmmoves the clone to the trash and deletes the branch. The script times each release's defaultclove rm. - v0.1.9 and v0.1.17 have tags but no published release, so no binary; there is no v0.1.15. They are listed under
skipped.
Noise
One job on a shared runner is not enough: two reruns of v0.1.34 with bench_new gave 678 ms and 274 ms cold. So several jobs, each on its own runner, share the releases. Each job shuffles its releases (seeded by the job number), so no version is always first or last on a runner. A release's new and rm are the median over all timed cycles of all its jobs, with p25 and p75 over the same cycles. init runs once per job, so its median and quartiles are across jobs. job_medians keeps each job's new median, to spot a runner that was off.
The history was built with:
- mono: 10 jobs, each release in 3 of them (
--per 3): about 10 releases per job, 30 cold cycles per release. A mono release takes about 8 minutes, init alone 2 to 3. - small: 6 jobs, every release in each: 60 cold cycles per release.
Runs
On a tag, the plan job waits for release.yml to upload the macOS asset (up to 100 minutes), 3 jobs per workload bench the release, and the record job adds it to site/src/data/bench-history.json with site/scripts/bench-history.mjs, pushes bench/<tag> and opens a PR against main. It never pushes to main. A release benched alone is compared with releases measured in other runs, on other runners: a change smaller than the bands is noise.
- It starts on the tag push, not
release: published.release.ymlpublishes the release withGITHUB_TOKEN, and events from that token start no workflows. - A PR opened with
GITHUB_TOKENgets nopull_requestruns, so the job startscion the branch itself, for the required checks. - Opening the PR needs "Allow GitHub Actions to create and approve pull requests" (Settings, Actions). Without it the job still pushes the branch and links the compare page in the run summary.
- By hand:
tagstakes a list (v0.1.33 v0.1.34) orall(everyv*tag),workloadismono,smallorboth,jobsis per workload,peris how many of them each release runs in (empty: all), and untickingrecordskips the PR. Withtagsempty it builds this ref's CLI, benches it and records nothing.
macOS runners run 5 at a time on this account; the rest queue.
To rebuild the history:
gh workflow run bench.yml --ref <branch> -f tags=all -f workload=mono -f jobs=10 -f per=3 -f record=false
gh workflow run bench.yml --ref <branch> -f tags=all -f workload=small -f jobs=6 -f record=false
gh run download <run id> -D runs/<run id> # each run
node site/scripts/bench-history.mjs add runs/<mono run>/*/bench-release.json --runner macos-26 --run <mono run url> --reset
node site/scripts/bench-history.mjs add runs/<small run>/*/bench-release.json --runner macos-26 --run <small run url>bench-history.json
workloads {mono, small}, each:
method files, ignored, uv_packages (mono), warmup, cycles, runner, machine, git
releases one per release, oldest first:
version, date (published), runner, run (Actions URL), jobs, failed_jobs and error (if any)
init {median, p25, p75, n} in ms across jobs, and steps: median per step clove reports
cold, spare (null before v0.1.25), moved (mono):
new, rm {median, p25, p75, n} in ms, over every timed cycle of every job
job_medians each job's median for new
steps median per step clove reports in `new --json` (names vary by release)
missed_spare cycles where new found no spare (spare only, if any)
failed_steps setup steps a clone reported as failed (if any)
skipped {version, reason}: releases with no resultThe history holds CI runs only. The M4 Max numbers above come from another machine; in the same chart they would read as a speed-up or a regression that isn't one.
On the site
The benchmarks page reads:
site/src/data/bench-suite.json, the suite's results, built byscripts/bench/run site(schema above).site/src/data/bench-history.json, one entry per release: version, commit, date, runner, machine, and the per-step medians ofbench_newfor cold and spare.