Skip to content
  • BoringCache
  • Benchmarks
  • CI caching

Seven months of benchmarking my CI build cache on real projects

Since March, I've benchmarked BoringCache on PostHog, Zed and Deno as their code changes. Here's where it makes builds faster, where another cache is level or faster, and how much data, egress and runner size it saves.

Gaurav Tiwari Updated 18 min read

I've been benchmarking BoringCache since the beginning. I had a first version of it last year, but the Docker backend and most of the tool integrations took shape this March, and the first commit in the PostHog benchmark repository is from March 17, 2026. The benchmarks have been running for seven months since then, on open source projects as their code changes. The benchmark page currently covers 21 projects and 15 build tools, with 3,376 builds in the selected samples. For the build comparisons, the number I compare is the time to restore the cache, run the build and save the cache again. Hit rates help explain a result, but they don't tell you how long the build took.

Many CI setups use the cache built into their CI provider. That makes sense: a cache next to the runners is fast to deliver, and the data doesn't have to move back and forth between networks or run up egress charges. BoringCache moves it out into a remote, shared cache that any runner, CI provider or laptop can use. I want a build to get about the same result from that cache as from one next to the runner, or a better one, and that takes more than storing the cache. Different tools have different trade-offs. Some caches are huge, some are small, and some are sensitive to latency, so each one needs different engineering across the stack. BoringCache has a Docker backend that can make builds much faster than the standard cache exports, without moving the build to a bigger machine. It has a Cargo adapter that speeds up Rust builds, stores the target directory more cheaply and prunes it. And it has remote cache adapters that speak each build tool's own protocol and try to get the work done faster than a plain remote cache would.

Benchmarks are how I see those parts actually working, and it's rewarding. You run a large Docker build and you see the backend do what you built it to do. They're also a mirror: they show me exactly what the product does. Without them, I could think I'd built the perfect cache backend and never find out whether I had. So I test it on really heavy projects, like PostHog and Zed, and that sets a high bar for what I'm building.

Average PostHog Docker build time over 30 changed commits on GitHub's 4 vCPU x86-64 runners: BoringCache 15 min 2 s, GHCR registry cache 20 min 58 s and GitHub Actions cache 28 min 22 s.

Docker: PostHog

PostHog was the first project I benchmarked. It's one Docker image with the Django backend and the Node.js frontend, and its source changes every day. The funny thing is that a Docker cache doesn't always help, and sometimes it hurts. With the standard cache backends, exporting the cache is quick for a small build graph, but on a graph as large as PostHog's the export can take longer than the build itself. The cold builds show it. A cold build has nothing to restore and has to export everything it built. With the GitHub Actions cache, the build steps took about 12 minutes, and exporting the cache took another 23 min 35 s, almost twice as long. The cold build took about 24 minutes longer than with BoringCache, which is longer than the whole BoringCache build.

PostHog Docker build, cold and warm One run per cache · GitHub 4 vCPU x86-64
Cache Cold build Warm build
BoringCache 15 min 28 s 2 min 13 s
GHCR, registry cache 23 min 24 s 2 min 44 s
GHA Cache 39 min 59 s 3 min 6 s

BuildKit exports the cache at the end, once the full solve completes and it can say: this is the cache. The BoringCache backend does that work while the build runs, and it has to be very careful doing that. It can't slow the build down and it can't kill the machine. Not every step needs the whole machine. An apt-get install won't stress a runner. In my PostHog builds, the collectstatic step uses the most CPU, and any step that fills up memory can bring the machine down, so the backend has to fit its work around those steps. I wrote about how that works in Docker build done. Still exporting cache…

The changed builds tell the same story. The benchmark steps along PostHog's main branch, and every cache builds the same commit. Each build starts from the cache an earlier commit left behind, which is what CI does all day. Across 30 commits, PostHog took an average of 15 min 2 s with BoringCache on GitHub's 4 vCPU runners and 28 min 22 s with the GitHub Actions cache. BoringCache was faster on all 30 builds, which saves 13 min 20 s per build.

The thing that tripped me up most often is the CI runners themselves. A 4 vCPU runner doesn't always get the same CPU. It can be a current processor or one that's a year old or more, and you don't get the same performance from them. GitHub's 4 vCPU runners in these benchmarks reported AMD EPYC 7763, 9V74 and 9V45 and Intel Xeon models for builds of the same project. So I record the CPU model of every build, and the benchmark page shows a separate ratio for the pairs where both caches ran on the same CPU model. GitHub's Arm runners reported the same CPU model for every PostHog build, and they show the same pattern.

PostHog Docker build, changed commits Average restore, build and save time · 30 commits per runner · image layers only
Cache GitHub 4 vCPU x86-64 GitHub 4 vCPU Arm64
BoringCache 15 min 2 s 11 min 57 s
GHCR, registry cache 20 min 58 s 16 min 10 s
GHA Cache 28 min 22 s 21 min 19 s

The same backend runs on other providers' runners, and I run weekly samples on Depot and Namespace, where the CPU is more consistent. Each runner below averages its own set of commits, so this table shows BoringCache on each machine, not a ranking of providers.

PostHog with BoringCache by runner Average restore, build and save time · image layers only
Runner BoringCache Builds
GitHub, 4 vCPU x86-64 15 min 2 s 30
GitHub, 4 vCPU Arm64 11 min 57 s 30
Depot, 4 vCPU 11 min 40 s 4
Depot, 8 vCPU 5 min 58 s 30
Namespace, 4 vCPU 9 min 16 s 18

Depot and Namespace also offer remote builders: dedicated BuildKit machines that run the build and keep its state between builds. Depot's builder has 16 vCPUs. On the same commits, BoringCache on Depot's 8 vCPU runner finished sooner, with half the CPUs. Namespace's builder has 8 vCPUs. BoringCache on Namespace's 4 vCPU runner was about level with it, and on an 8 vCPU runner, the same size as the builder, it was faster on 13 of 15 builds.

PostHog runner with BoringCache against a remote builder Average restore, build and save time on the same commits
BoringCache on Time Remote builder Time Faster on
Depot, 8 vCPU 5 min 58 s Depot, 16 vCPU 6 min 34 s 24 of 30
Namespace, 4 vCPU 9 min 16 s Namespace, 8 vCPU 10 min 3 s 10 of 18
Namespace, 8 vCPU 6 min 12 s Namespace, 8 vCPU 9 min 6 s 13 of 15

Remote builders keep that state on a persistent disk or in S3 or other remote storage. That works well, but the retained state belongs to the remote builder. I want to reuse it while running the build on another provider's runner, too. There's a storage trade-off too. The state keeps growing as you build more, and you get little say in what's pruned. Depot's container builders, for example, remove the least recently used layers once the cache reaches its size limit, 50 GB by default, and can drop layers older than 7, 14 or 30 days. To clear it by hand, its docs describe resetting the whole cache. With BoringCache, the build state is shared and you can use it anywhere. Each cache is a tag you can list and delete on its own, and the Cargo adapter prunes the target directory, which I come back to below.

Read-only builds on Depot runners restore the PostHog cache that the GitHub runs saved, build the same commit and save nothing back. Every one of them restored the cache and passed its output check. A read-only build on GitHub's own runner reads the same cache as a reference point, and even that one took anywhere from 11 min 57 s to 16 min 26 s, depending on which CPU model it got.

Depot runners reading the PostHog cache saved on GitHub Restore and build, read-only · BoringCache +
Runner Builds Restore and build GitHub 4 vCPU reader, same commits
Depot, 4 vCPU 3 11 min 17 s 13 min 42 s
Depot, 8 vCPU 2 5 min 16 s 12 min 20 s

PostHog's own image builds are a useful reference. They run on Depot's remote builders, and across 733 builds from October 16 to 20, the build and push step averaged 7 min 7 s. That isn't the same measurement: PostHog builds two platforms and pushes the image to its registries, and its main-branch builds reuse layers its pull request builds have already made.

Building two platforms doesn't have to take twice as long, though. Depot builds each platform on its own native builder, and you can do the same with CI runners: run the x86-64 and Arm64 builds in parallel on their own runners, then join them into one multi-platform image with docker buildx imagetools create. In an ideal world the two builds take about the same time and finish together. On GitHub's 4 vCPU runners, the Arm64 builds averaged 11 min 57 s against 15 min 2 s on x86-64, so the image would be ready once the x86-64 build, its push and the manifest merge finish. That makes the x86-64 time the closer one to compare with PostHog's 7 min 7 s. BoringCache on a 4 vCPU runner took 9 min 16 s on Namespace and 11 min 40 s on Depot, slower but within a few minutes on a smaller machine, and on Depot's 8 vCPU runner it took 5 min 58 s.

Most of my optimisation has gone into BuildKit and the export, and into making BoringCache a first-class backend for it. Once that's done, a smaller machine with a better cache can do much of the same job, and throwing more cores at a build helps less than you'd think: in Cache, not bigger runners, four times the cores made the PostHog build about 2.4 times faster, not four. A smaller machine is also cheaper. At the providers' listed prices, 1,000 PostHog builds come to $143 of Depot 8 vCPU runner minutes, against $263 of Depot remote builder minutes. That covers only the measured restore, build and save time. It excludes plan fees, storage, the BoringCache subscription and the rest of the CI job, and doesn't deduct any included minutes. It also tells me a build isn't all compute. Restoring, exporting and saving the cache take time too, and that's the part BoringCache can make cheaper. That's what I like about benchmarking. Every round shows me another bottleneck, and something else to improve.

Caches inside Docker: llama.cpp

The Docker backend can also cache work inside the Docker build. It can move your own cache directories and a build tool's native cache out of the Docker image and into BoringCache. It helps most when one build step takes a long time, or when a source change invalidates the layer that does most of the work. The layer cache can't help there, but a compiler cache like ccache or sccache running inside that step still can. llama.cpp is the clearest example. Its server image compiles C and C++ from source in one layer, and any source change invalidates it. With ccache's native cache inside the build, the compiler reuses the objects that didn't change.

llama.cpp server image Average restore, build and save time · 14 commits · GitHub 4 vCPU x86-64
Configuration Cache Time
Image layers BoringCache 1 h 20 min
Image layers GHA Cache 1 h 23 min
Image layers GHCR 1 h 24 min
Layers, tool caches and cache mounts BoringCache + 12 min 56 s
Layers and cache mounts GHA Cache Dance 20 min 12 s

Here the difference comes from caching ccache's results. With image layers alone, every cache took more than an hour. GHA Cache Dance gets there a different way: it saves the contents of the cache mounts as an archive with actions/cache. Each new cache key saves the whole directory again, including files that haven't changed. That post-job save added between 2 min 5 s and 3 min 20 s to each of the 14 builds. BoringCache tracks the native cache's changes and uploads only those, and it was faster on all 14.

Keeping several of those cache-mount archives also means keeping repeated copies of the results that haven't changed. BoringCache stores those results as content-addressed objects, so later builds can reuse the stored copy. That can reduce storage as well as uploads, but how much depends on compression, what changes and which versions you keep.

It doesn't always pay to cache more inside Docker, and the result changes from run to run. On PostHog, the plus configuration adds a Turbo cache for the frontend build and carries the pnpm, npm and uv cache mounts to the next runner. On GitHub's 4 vCPU runners it averaged 18 min 1 s, against 15 min 2 s for image layers alone, and it was faster on 2 of the 30 builds. On Namespace's 4 vCPU runner it was about level: 9 min 7 s against 9 min 16 s, and faster on 8 of 18. A mount has to be restored before the build and saved after it. When a lockfile change leaves the install a lot to fetch or build, restoring the store saves that work, but when only one dependency has changed, restoring the whole store can take longer than installing directly. Linear found the same with node_modules in their CI: restoring the cache took about 28 s, against about 7.5 s for an install filtered to what each job needed, so they stopped caching it. The dependency results below cover a much bigger install.

Caching inside the build pays off when there's a lot of computation for a cache to save, like the llama.cpp compile above. The layer cache comes first, and a tool cache like ccache, sccache or Turbo covers most of what's left. A cache mount is for the rest: a directory no tool cache can serve, like a build tool or anything else you compile inside the image. That's why BoringCache leaves cache mounts off unless you turn them on. When a tool cache is on, ccache and sccache keep their results only in BoringCache, so a mount doesn't store a second copy of them. I wrote more about that in A Docker layer miss doesn't mean a cold build.

Cargo: Zed and Deno

Next on the list is Cargo. BoringCache's own CLI is written in Rust, so I've been trying to keep our CI cost down. If a build takes 10 minutes, I'm billed for 10 minutes. If it takes two or three, that's what I'm billed for. The Cargo results are mixed, though. Rust is sensitive to the CPU profile, because compiling Rust, and the C and C++ code many crates build, uses a lot of compute. On GitHub's 4 vCPU runners, Zed with the sccache compiler cache is level across the caches. On Deno, with fewer builds in the sample, BoringCache came out ahead of Depot Cache and GHA Cache, and level with kache.

Zed and Deno on GitHub runners Average restore, build and save time · GitHub 4 vCPU x86-64 · Zed over 30 commits, Deno over 8
Cache What it stores Zed Deno
BoringCache sccache compiler cache 30 min 45 s 26 min 0 s
Depot Cache sccache, WebDAV backend 30 min 38 s 29 min 25 s
GHA Cache sccache, GitHub Actions backend 32 min 29 s 29 min 0 s
kache 31 min 57 s 26 min 6 s
BoringCache + sccache, Cargo registry and target directory 30 min 27 s 22 min 0 s
GHA Cache + target sccache, plus actions/cache for the registry and target 39 min 0 s 25 min 13 s
mr-boxington 48 min 53 s 33 min 4 s

On runners with a consistent CPU, it's clearer. Depot's runners reported the same CPU model for almost every build, and there BoringCache is ahead. In the Zed release bundle, both caches restore the Cargo registry and the target directory, and BoringCache was faster on all 30 builds, including the 29 where both ran on the same CPU model.

Zed on Depot runners Average restore, build and save time · 30 commits
Project and runner BoringCache + Compared cache Time
Zed release bundle, Depot 8 vCPU 12 min 57 s Depot runner cache 19 min 35 s
Zed, Depot 4 vCPU 18 min 50 s kache 22 min 2 s

The difference is what the Cargo adapter knows about Cargo. It handles source modification times, which Cargo uses to decide whether a restored output is still fresh, and it prunes the target directory so it doesn't grow forever. BoringCache doesn't make the compiler faster. It makes it cheaper to get the compiler to the point where it has only the changed work left.

BoringCache is a content-addressed cache by default. If the tool is content-addressed itself, like Bazel or Turborepo, it already produces cache objects and BoringCache stores them as they are. If you save a monolithic archive, like a target directory, BoringCache slices it into chunks, so the next save uploads only the parts that changed. If your runner provider charges for outbound traffic and you upload 10 GB of cache on every run, you pay for that transfer. With BoringCache you save only the changed state, which can be 100 MB, 10 MB or even nothing, depending on the build.

You can see it in the stored cache too. For Zed, BoringCache's Cargo registry, git checkouts and target directory tags reference 5.29 GiB. The GitHub Actions cache keeps one 16.2 GiB archive of the same directories. Neither number includes the sccache objects, which are stored separately.

BoringCache can also restore a very large state onto a runner quickly. On a Depot 4 vCPU runner, Zed's target directory, between 15 and 43 GB uncompressed, restored in a median of 47 s over 66 builds, and the 43 GB one took 49 s. On GitHub's 4 vCPU runners the median was 87 s, and restores of more than 40 GB took about two to four minutes, depending on the CPU model.

The Zed state also moves between providers. In two read-only builds, Namespace's 4 vCPU, 16 GB runner restored the cache the GitHub runs had saved, extracting 26.7 GB of target directory in 28 s and 35 s, and both builds passed. On one commit it finished sooner than a GitHub runner reading the same cache, and on the other it finished later.

Bazel: gRPC

The remote cache adapters are the third part: Bazel, sccache and the other tools that talk to a remote cache themselves. It turns out Bazel is highly, highly sensitive to latency. A build can request thousands of objects, and if each request to the remote cache takes 50 or 100 milliseconds, you see it in the build time. So we've optimised for that from the start. BoringCache tracks what a build reads and prefetches it, eagerly or lazily, so the runner already has what the build needs and loads anything else as it's needed. A lot of people serve a Bazel cache from S3. That can be fast within your own network, where latency is low. If the bucket is somewhere in the cloud, Cloudflare R2 or similar, the build suffers, and I've seen that. In the gRPC build below, a NativeLink server on the runner with an R2 bucket behind it was the slowest of the five, though the same setup was slightly faster than BoringCache on the much smaller Pants builds.

Bazel: gRPC build Average restore, build and save time · 9 commits · GitHub 4 vCPU x86-64
Remote cache gRPC build
BoringCache 2 min 51 s
GHA Cache, Bazel --disk_cache saved by actions/cache 3 min 4 s
BuildBuddy 4 min 14 s
Depot Cache 7 min 47 s
NativeLink, server on the runner backed by R2 10 min 39 s

One thing in these benchmarks isn't apples-to-apples, and it's a bit unfair to BoringCache. For several adapters, the GitHub Actions cache I compare against saves the tool's local cache directory as one archive. The build then runs against a cache on the local disk. I've been trying to match that speed with BoringCache anyway. My thinking was that if a remote cache could be as fast as a cache on the runner's own disk, it would be fast enough for anyone. For Bazel that has held: BoringCache was a little faster than the local archive and faster than the remote caches. That comes from fetching only what the build needs, with request deduplication and compression.

Other adapters: Turborepo, Nx, Go and more

Then there are the other adapters: Turborepo, Nx, moon, Go and the rest, where most builds take a few minutes. When the cache is 100 MB and the build takes two minutes, there isn't much for a cache to save, so most of the caches end up close. Here is every one of them, using the selected samples on the benchmark page, including where another cache was faster.

Other adapters Average restore, build and save time on the same commits per project
Project Cache Time
Go
HugoGitHub 4 vCPU, 18 builds BoringCache 41.9 s
GHA Cache 41.1 s
Depot Cache 91.6 s
Turborepo
n8nGitHub 4 vCPU, 30 builds BoringCache 1 min 57 s
Depot Cache 1 min 59 s
Vercel Remote Cache 1 min 57 s
GHA Cache 2 min 2 s
Nx
StorybookGitHub 4 vCPU, 30 builds BoringCache 1 min 55 s
Depot Cache 1 min 53 s
GHA Cache 1 min 54 s
Nx Cloud 1 min 55 s
moon
ZitadelGitHub 4 vCPU, 30 builds BoringCache 72.9 s
Depot Cache 68.1 s
Pants
Backend.AIGitHub 4 vCPU, 30 builds BoringCache 2 min 25 s
NativeLink 2 min 23 s
Depot Cache 2 min 28 s
Gradle
OpenTelemetry JavaGitHub 4 vCPU, 6 builds BoringCache 3 min 8 s
GHA Cache 3 min 0 s
Depot Cache 3 min 41 s
Maven
Spring AIGitHub 4 vCPU, 17 builds BoringCache 4 min 2 s
GHA Cache 4 min 15 s
Depot Cache 5 min 37 s
sbt
LichessGitHub 4 vCPU, 9 builds BoringCache 1 min 58 s
GHA Cache 4 min 56 s
Play FrameworkGitHub 4 vCPU, 27 builds BoringCache 2 min 31 s
GHA Cache 2 min 27 s
ccache
OBS StudioGitHub 4 vCPU, 28 builds BoringCache 1 min 52 s
GHA Cache 2 min 3 s
Xcode
OBS StudioGitHub 3 vCPU M1, 28 builds BoringCache 5 min 22 s
GHA Cache 4 min 53 s
Buck2
ExecuTorchGitHub 4 vCPU, 30 builds BoringCache 10.7 s
NativeLink 19.6 s
Nix
ZedGitHub 4 vCPU, 30 builds BoringCache 1 h 7 min
Cachix 1 h 4 min
ZedDepot 4 vCPU, 23 builds BoringCache 35 min 21 s
Cachix 37 min 3 s

Where BoringCache is level, the difference you get is elsewhere: the cache is shared, stored once, and usable from any machine you build on. Go and Gradle show how close BoringCache gets to the local disk. Against the GitHub Actions archive on the runner's disk, it's about level. Against the other remote caches, it's faster: twice as fast as Depot Cache on Hugo.

Dependencies: PostHog, Discourse and Mastodon

Generic save and restore is next. On the web you'll find synthetic benchmarks that save and restore a single file of a set size, say 4 GB, to see how everything performs. I've found that isn't accurate. It's better to benchmark a realistic scenario. If your project is Ruby, you run bundle install. If it's Node, you install with npm, pnpm or Yarn into node_modules. If it's Python, you install your Python packages. So I used PostHog's pnpm and uv stores, and Discourse's and Mastodon's Bundler caches. PostHog's pnpm store is 2.7 GB across 163,161 files, and its uv cache is 3.6 GB across 66,731 files. Each provider restored them once, from a cache saved on that provider at the same PostHog revision.

PostHog dependency restores by provider BoringCache first, then the compared cache · restore only · 4 vCPU Linux x86-64
Runner Compared cache pnpm store uv cache
GitHub GitHub Actions cache 17.1 s vs 17.2 s 16.7 s vs 14.8 s
Depot Depot runner cache 11.5 s vs 5.7 s 7.1 s vs 6.6 s
Namespace GitHub Actions cache 11.9 s vs 18.7 s 11.0 s vs 19.9 s
Blacksmith Blacksmith cache 10.0 s vs 15.5 s 11.4 s vs 8.5 s

The main point here is that the restore timings aren't hugely different either way. On Depot, Depot's own runner cache restored faster. On Blacksmith, its cache was faster for uv. On Namespace, BoringCache was faster for both. The bigger difference is the save, where BoringCache sends much less data. Each save below followed one lockfile change in an existing workspace, where content from earlier saves could be reused, so it isn't an estimate for every project.

Dependency saves after a lockfile change GitHub 4 vCPU x86-64 · one run each
Project Cache size BoringCache save GitHub Actions cache save
PostHog pnpm 2.7 GB, 163,161 files 9.5 s, 76 MB sent 17.3 s, 757 MB sent
PostHog uv 3.6 GB, 66,731 files 6.0 s, 29 MB sent 14.7 s, 1,043 MB sent
Discourse Bundler 1.2 GB, 37,004 files 4.3 s, 16 MB sent 6.2 s, 565 MB sent
Mastodon Bundler 190 MB, 19,550 files 4.2 s, 5 MB sent 3.0 s, 86 MB sent

Sending less also made the larger saves faster, but on Mastodon's 190 MB of gems the GitHub Actions cache saved in less time.

The same caches also moved between providers. I saved the dependencies on GitHub and restored them on fresh Depot, Namespace and Blacksmith runners, and all twelve restores passed their dependency checks. The pnpm store, for example, restored in 8.4 s on Depot, 13.3 s on Namespace and 10.0 s on Blacksmith.

Container registry: PostHog

Then there's the container registry. From a GitHub runner, pushing the PostHog image to BoringCache took 95.6 s, against 2 min 25 s to 2 min 54 s for Depot, ECR and GHCR, and pulls took about the same time on all four.

Pushing and pulling the PostHog image Average of five pushes and five pulls · 8.35 GB image · GitHub 4 vCPU, Linux amd64
Registry Push Pull
BoringCache 95.6 s 1 min 55 s
GHCR 2 min 54 s 1 min 58 s
Amazon ECR 2 min 42 s 1 min 54 s
Depot 2 min 25 s 1 min 55 s

It's a shared registry you can push to from CI and pull from anywhere, with Docker or any OCI client. You could use ECR or something else, and that's fine. What I'm focusing on here is the cost. If you pull the same image over and over, from CI, staging and production, the transfer cost adds up. ECR charges nothing for a pull inside the same AWS region, but a pull out to the internet, to a CI runner outside AWS for example, is billed as data transfer. Our Registry benchmark pulls the PostHog image from ECR onto a GitHub runner after PostHog builds. From October 14 to 20 that was 126 pulls, and AWS billed us $26.63 for 304.6 GB of ECR transfer out: about 21 cents a pull, or about $210 for every 1,000 pulls. Storing the image for the same week cost 68 cents. BoringCache doesn't charge for egress, and Registry images are stored the same way as the cache.

What the benchmarks keep teaching me

When you're starting a product, it's hard to get feedback. What has worked in BoringCache's favour is that there are a lot of good open source projects out there to benchmark with, and they solve their builds in different ways. With them, you can actually prove that something works. Whether it's been PostHog, Zed or Deno, each one taught me lessons that made BoringCache more efficient. I've learned that a remote cache on its own isn't the whole answer. The tools support a remote cache, but getting the most out of it takes more than that: restoring only what a build needs, saving only what changed, keeping the export out of the build's way, and making better use of the compute you already pay for.

It's also shown me what BoringCache is about: efficiency, reuse and sharing. CI keeps saving mostly the same content, with a little new content each time, so BoringCache stores that content once, and chunking makes more of it reusable. With agents and distributed systems running builds in more and more places, a shared cache makes even more sense, but it has to be efficient. In the end it comes down to compute. Demand for it keeps growing, so I'm trying to cut how much a build needs. You can still reach for a bigger machine when you need one, but if a smaller machine with a better cache can do the same work for less, that's better.

That's why I keep benchmarking. I want to see that BoringCache makes builds faster, does less work, lets you use the same cache wherever you build, and costs less, on whichever runner you choose.

If you're struggling with your build or your cache, I'm happy to take a look with you. When a Docker build spends minutes exporting its cache, the Docker backend could speed that up. BoringCache is especially useful if you're on self-hosted runners, or you build in more than one place and your CI provider's cache isn't available there. Send me a repo or a workflow, and we can see how we could work together.

The build tables use selected matched samples from October 5 to 22. I excluded two periods on October 8 and 9 when cache uploads were rejected at the workspace storage limit or during a deploy. These numbers compare successful build times; they don't measure availability.

Sources: build benchmarks, Registry benchmarks, run records and dependency records at f2cbb5a; March PostHog builds and PostHog's own builds. ECR costs come from our AWS bill.