Skip to content
compiler.dev

Test shard calculator

Enter how long your whole test suite takes, the time you want, and the setup each shard repeats. We give you the shard count and the cost.

Shards needed
7
Wall time
7.7 min
target 8.0 min
Cost per run
$0.67
GitHub $1.23
ShardsWall timeBilled minGitHub 8 vCPUcompiler.dev 8 vCPU
142.0 min42$0.92$0.50
68.7 min54$1.19$0.65
77.7 min56$1.23$0.67
87.0 min56$1.23$0.67
144.9 min70$1.54$0.84

Each job is billed in whole minutes. Prices as of October 2026.

Prices as of October 2026, from the provider's published rates. Everything runs in your browser; nothing you type is sent anywhere.

How to use it

  1. Enter the suite time on one machine, in minutes, without setup.
  2. Enter your target wall time and the setup minutes each shard pays (checkout, install, build).
  3. Read the shard count. The table shows how time and cost change with more shards.

Frequently asked questions

What is the formula?

Wall time = suite minutes ÷ shards + setup minutes. We solve for the smallest shard count where wall time is at or under your target.

Why is the target sometimes impossible?

Every shard pays setup. If your target is no longer than setup, no number of shards can reach it. Cut setup first, for example with caches.

What does more sharding do to my bill?

Each shard repeats setup, so billed minutes go up while wall time goes down. The table shows both.

Are shards perfectly even?

No. A real split is a little uneven. The test sharding planner balances real test durations. Add a few percent as margin.

Embed this calculator on your site

Free to embed on blogs and docs. Paste this HTML where you want it to appear:

<iframe src="https://compiler.dev/embed/test-shard-calculator" title="Test shard calculator" width="100%" height="560" style="border:1px solid #e5e7eb;border-radius:12px" loading="lazy"></iframe>
<p style="font-size:12px">Calculator by <a href="https://compiler.dev/tools/test-shard-calculator">compiler.dev</a></p>