CI Test Shard Planner

Split a slow test suite across parallel runners so every shard finishes at about the same time, and see what each extra shard buys.

One line per unit to shard, usually a test file. Durations are seconds by default; 850ms and 2m also work, and a line starting with # is ignored. Names may contain spaces as long as the duration comes last.

Longest shard
—
Set the shard count and the test list above.

Each shard, longest first

    What more shards buy

    ShardsLongest shardSpeed-upEfficiency
    Assignment for your CI matrix
    —

    The split is the longest-processing-time rule: sort the tests by duration, then place each one on the shard that is currently fastest, ties going to the lowest-numbered shard. It is a heuristic, not an optimum: in the worst case the longest shard is at most 4/3 − 1/(3m) times the best possible for m shards, and the lower bound shown above (the total work divided by the shard count, or the slowest single test if that is larger) is never beaten. Each list runs slowest first, which fails late tests sooner. The estimate counts only the test durations you paste: a per-shard checkout and setup, shared fixtures, tests that must run after another test, and uneven runner sizes are all outside it. Everything is computed in your browser; nothing is sent anywhere else.