How we cut our build times by 63%
1 minute read
Our CI pipeline had quietly grown to eighteen minutes. Here is how we traced it, what we found, and the four changes that took it back under seven.

Every engineer on the team felt it, but nobody had measured it. A build that took four minutes at the start of the year was taking eighteen by June.
Where the time actually went
Here is what changed and why it matters in practice.
Dependency installation, uncached: 6m10s
Type-checking the whole tree: 4m40s
Tests, mostly waiting on fixtures: 5m20s
pnpm install --frozen-lockfile
pnpm turbo run build --cache-dir=.turboMeasure first. Then change one thing.
Related topics
