> ## Documentation Index
> Fetch the complete documentation index at: https://docs.archil.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Git hosting performance

> Archil Git hosting, code.storage, GitHub, and Cloudflare Artifacts from an agent sandbox in AWS us-west-2: small operations, throughput at 1, 10, and 50 clients, large clones and LFS, and the first operation after idle.

We measured [Archil Git hosting](https://docs.archil.com/git/introduction.md) on December 1, 2026, against code.storage, GitHub, and Cloudflare
Artifacts, with the same scripts from the same client: an Archil sandbox in AWS us-west-2. Every operation is a fresh
`git` process, as an agent's tool call would be. Latency is p50 / p90 / p99 in milliseconds.

* **code.storage is faster per small operation today.** A warm push of a small commit took 119 ms on Archil and 75 ms
  on code.storage at p50, a fetch 110 and 75 ms, and an `ls-remote` 65 and 60 ms.
* **At 50 concurrent clients, Archil is close.** It pushed 159 times a second against code.storage's 169, and ran 199
  `ls-remote`s a second against 219, with no errors.
* **Archil was fastest on big clones and LFS downloads.** A full clone of git.git took 11.9 s on Archil, 12.9 s on
  code.storage, and 13.2 s on GitHub, and a 100 MB LFS download took 1.1, 1.5, and 13.6 s. code.storage was faster on a
  shallow clone, a 200 MB push, and an LFS upload.
* **Archil was 2.4–11× faster than GitHub and 3.4–6.5× faster than Cloudflare Artifacts** per small operation at p50.
* **Cold first operations cost more.** On a repo idle for hours, the first operation takes about half a second longer
  than a warm one. After the git service has paused, the first request takes about 2 seconds.

## Small operations

The repo had been used within the last few minutes. n is 100 unless noted.

| Operation | Archil | code.storage | GitHub | Cloudflare Artifacts |
| - | - | - | - | - |
| Push, 1 small commit | **119** / 145 / 170 | 75 / 86 / 99 | 1,275 / 1,365 / 1,481 | 522 / 750 / 1,085 |
| Fetch that commit from a second clone | **110** / 155 / 198 | 75 / 87 / 102 | 425 / 524 / 656 | 701 / 918 / 1,374 |
| `ls-remote` | **65** / 105 / 130 | 60 / 74 / 86 | 276 / 361 / 383 | 423 / 597 / 914 |
| Clone a small repo (n=20) | **208** / 261 / 378¹ | 83 / 104 / 195 | 493 / 622 / 725 | 704 / 814 / 882 |
| Create a repo (API, n=50; GitHub n=20) | **264** / 398 / 1,544 | 68 / 81 / 1,068 | 3,624 / 4,365 / 5,536 | 973 / 1,244 / 1,718 |
| Mint a write token (API, n=50) | **26** / 34 / 66 | | | 328 / 506 / 846 |
| Agent loop, end to end (n=50; GitHub n=20)² | **767** / 956 / 2,014 | 417 / 438 / 1,427 | 7,102 / 7,886 / 8,840 | 4,386 / 5,641 / 8,265 |

¹ Not like for like. Archil's small-clone repo had grown to 518 commits in 188 packs over earlier runs. Inside the
agent loop, a clone of a fresh repo took 100 ms at p50 on Archil.

² Create a repo, mint a write token, `git init` and push a first commit, clone from a second client, push again, and
fetch from the second client. code.storage and GitHub have no separate mint step in this loop. Cloudflare's create
response already includes a token, so a real client could skip its 328 ms mint. Archil's 2,014 ms maximum is one slow
create.

| Agent loop step, p50 | Archil | code.storage | GitHub | Cloudflare Artifacts |
| - | - | - | - | - |
| First push to the new repo | 100 | 76 | 1,318 | 667 |
| Clone from a second client | 100 | 81 | 466 | 866 |
| Second push | 103 | 73 | 1,178 | 636 |
| Fetch from the second client | 108 | 76 | 380 | 860 |

Repo creation is the largest part of the loop's gap to code.storage: 264 ms on Archil against 68 ms.

## Throughput

Each client loops on its own repo for 60 seconds. A push iteration makes a small local commit (about 50 ms) and pushes
it. Each cell is operations per second, then latency p50 / p90 / p99.

| Push | Archil | code.storage | GitHub | Cloudflare Artifacts |
| - | - | - | - | - |
| 1 client | **5.8/s**, 162 / 225 / 273 | 13.0/s, 66 / 73 / 84 | 0.8/s, 1,196 / 1,250 / 1,646 | 1.2/s, 689 / 977 / 4,835 |
| 10 clients | **61.4/s**, 148 / 208 / 325 | 103.1/s, 73 / 85 / 174 | 7.7/s, 1,191 / 1,301 / 1,597, 27 errors | 14.9/s, 646 / 835 / 1,108 |
| 50 clients | **159.3/s**, 268 / 429 / 591 | 168.6/s, 229 / 317 / 441 | 39.5/s, 1,165 / 1,280 / 1,483, 6% errors | 77.9/s, 601 / 784 / 1,143 |

| `ls-remote` | Archil | code.storage | GitHub | Cloudflare Artifacts |
| - | - | - | - | - |
| 1 client | **8.0/s**, 116 / 154 / 240 | 15.1/s, 49 / 55 / 76 | 3.3/s, 281 / 370 / 436 | 2.0/s, 478 / 509 / 567 |
| 10 clients | **98.8/s**, 83 / 124 / 191 | 152.0/s, 54 / 65 / 74 | 33.9/s, 269 / 343 / 414 | 21.9/s, 422 / 584 / 673 |
| 50 clients | **199.3/s**, 201 / 412 / 667 | 218.9/s, 180 / 257 / 371 | rate-limited: 2.9/s, 660 errors | 106.0/s, 463 / 591 / 805 |

* **Archil had no errors at any concurrency,** and neither did Cloudflare. GitHub returned internal server errors on
  pushes at 10 and 50 clients, and rate-limited `ls-remote` at 50.
* **At 1 and 10 clients, code.storage handles 1.5–2.2 times Archil's rate,** because each of its operations is faster.
  At 50 clients the two are within 6% on push and 9% on `ls-remote`, and code.storage's latency has tripled since 10
  clients.
* **The Archil service was at its default: 4 shards.** Each shard handled about 40 pushes a second at 50 clients. To
  spread more concurrent pushes, raise the [shard count](https://docs.archil.com/git/sdk.md#shards).
* **Cloudflare's latency stays flat** from 1 to 50 clients, so its rate grows with the number of clients, and nothing
  saturated at 50.
* At 1 client, Archil's `ls-remote` repo had just taken several hundred pushes from the push loop, which is likely why
  its p50 is above the warm 65 ms.

## Large operations

n=3, p50 in milliseconds.

| Operation | Archil | code.storage | GitHub | Cloudflare Artifacts |
| - | - | - | - | - |
| git.git full clone (\~324 MiB pack) | **11,877** | 12,901 | 13,150 | Failed: HTTP 500 after 9–14 s, 3 of 3 |
| git.git blobless clone (`--filter=blob:none`) | **5,144** | 6,382 | 9,237 | Not supported (no partial clone) |
| git.git `--depth=1` clone | **1,380** | 800 | 3,184 | 2,243³ |
| Fetch after 1 new commit | **130** | 122 | 504 | 347 |
| Push 200 MB (200 random 1 MiB files) | **8,517** | 6,659 | 8,881 | Not possible: 64 MiB per push |
| Git LFS upload, 100 MB | **1,432** | 1,310 | 4,207 | No LFS |
| Git LFS download, 100 MB | **1,106** | 1,478 | 13,610 | No LFS |

³ From a repo made by Cloudflare's depth-1 import of git.git. Its full import failed in 3 of 3 attempts, and a git.git
loaded with pushes of under 64 MiB each could be cloned only at depth 10 or less.

Large transfers are bound by bandwidth. Archil's full-clone times ranged from 10.0 to 18.4 s across the 3 runs.

## First operation after idle

Every number above is warm. These are what the first operation costs after a repo, or the whole service, has been idle.
Measured December 1–2, 2026.

### A repo idle for minutes

A repo that hasn't been used for about 10 minutes is detached from the git service, but its data is still cached. The
first operation reattaches it: a cold `ls-remote` took **126 / 195 / 309** (n=20), against 66 / 101 / 109 warm, about
60 ms more.

### A repo idle for hours

From about two hours after a repo's last write, its data is no longer in Archil's server-side caches, and the first
operation reads it from object storage. When the git service gets a request for such a repo, it prefetches the repo's
metadata while it attaches the repo's disk.

These were measured at the git service, on repos idle for about 22 hours, so they leave out the 50–60 ms network path
between the client and the service. Each repo was used for one cold operation, then the same operation twice warm.
p50 / p90, with n in parentheses:

| Operation | Cold, with prefetch | Cold, prefetch turned off | Warm |
| - | - | - | - |
| `ls-remote` | **440** / 686 (9) | 566 / 898 (10) | 18 |
| Clone a small repo | **510** / 823 (10) | 743 / 1,187 (9) | 32 |
| Push to a new branch | **534** / 772 (7) | 697 / 1,692 (7) | 80 |
| Mint a token, then push | **555** / 652 (7) | 760 / 1,831 (7) | 95 |

* **A cold first operation costs about 420–480 ms more than a warm one.** Prefetch cuts 125–230 ms at p50 and about half
  the p90, but attaching the disk takes about as long as the prefetch, and the two run at the same time.
* **The service these ran on attached cold disks slowly,** in about 400–500 ms. On another service, without prefetch,
  cold first operations measured from the client took 382 ms for `ls-remote`, 462 ms for a fetch, 597 ms for a push,
  and 606 ms for a small clone at p50 (n=5 or 6).
* **Large repos pay more.** A full clone of git.git read straight from a disk idle for 16 hours, without the git
  service, took 19.8 s against 13.0 s warm (one run).

### After the service has paused

The git service pauses after about 5 minutes with no request to any repo on a shard, and resumes on the next request.
Measured on a small repo, in the same earlier run as the code.storage and GitHub numbers:

| First operation | p50 / p90 / p99 (n) |
| - | - |
| `ls-remote`, repo data still cached | 2,001 / 2,791 / 3,270 (10), against 121 warm |
| Push as the first operation | 2,416 / 3,186 / 3,186 (3) |
| `ls-remote`, service paused and repo detached | 2,755 / 3,005 / 3,005 (5) |

After a pause of many hours, when the repo's data was also cold, the first operation took 4.4 and 4.7 s (n=2).

An account with steady traffic rarely pauses: a shard pauses only when none of its repos has had a request for 5
minutes. A quiet account pays about 2 seconds once per idle period. Repos that are used once an hour or less pay the
cold-repo cost on their first operation.

## Method

| | |
| - | - |
| Client | An Archil sandbox in AWS us-west-2: 8 vCPU, 16 GiB, Ubuntu 26.04, git 2.53.0, git-lfs 3.7.1 |
| Archil | Git hosting in the same account and region, at its defaults: 4 shards, each a 4 vCPU, 4 GiB sandbox |
| code.storage | An organization in its AWS us-west-2 region |
| GitHub | Private repos on github.com |
| Cloudflare Artifacts | Open beta, a namespace with the `us` jurisdiction. Requests were served from Cloudflare's Portland (PDX) edge |

* **Each operation is one complete command,** such as `git push` or `git clone`, timed with a monotonic clock. It
  includes process start, DNS, TCP, and TLS, because an agent's tool call starts a new `git` process each time.
* **Credentials:** a 24-hour write token per repo on Archil and Cloudflare, given to `git` by a credential helper, and a
  `gh` token on GitHub.
* **Small operations:** each iteration commits 2–10 KB, pushes it from one clone, fetches it from a second clone, and
  runs `ls-remote`.
* **Percentiles** are nearest rank. With fewer than 100 samples, the p99 is the maximum.
* **When:** Archil's warm, throughput, and large-operation numbers were measured on December 1, 2026 (UTC). code.storage
  and GitHub were measured hours earlier with the same scripts and client, and Cloudflare Artifacts later the same day.
  The paused-service numbers come from that earlier run, and the cold-repo numbers from December 1–2.
* **Cloudflare jurisdiction:** a namespace without a jurisdiction was about 30% faster: push 366 ms, fetch 510 ms, and
  `ls-remote` 292 ms at p50, still 3.1–4.6× slower than Archil.

The benchmark scripts aren't published yet. If your results differ, email
[support@archil.com](mailto:support@archil.com) with your setup and output.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.