# Sorus website and documentation Client: 0.3.0. Reference source: f156c174ca0ad3d4b326c62fc3d2b9245a09bf78. Summary and navigation: https://www.sorus.run/llms.txt This file includes the public website, documentation, blog, benchmark pages and the agent skill. Navigation and interactive controls are omitted. Linked OpenAPI and benchmark JSON retain their own schemas. ## Contents - [Cargo benchmark](https://www.sorus.run/benchmarks/cargo) - [Clap benchmark](https://www.sorus.run/benchmarks/clap) - [Diesel benchmark](https://www.sorus.run/benchmarks/diesel) - [Hyper benchmark](https://www.sorus.run/benchmarks/hyper) - [Rust CI benchmarks](https://www.sorus.run/benchmarks) - [Benchmark methodology](https://www.sorus.run/benchmarks/methodology) - [Regex benchmark](https://www.sorus.run/benchmarks/regex) - [Ripgrep benchmark](https://www.sorus.run/benchmarks/ripgrep) - [Rust Analyzer benchmark](https://www.sorus.run/benchmarks/rust-analyzer) - [Serde benchmark](https://www.sorus.run/benchmarks/serde) - [Tokio benchmark](https://www.sorus.run/benchmarks/tokio) - [Blog](https://www.sorus.run/blog) - [Rust CI/CD: a practical introduction](https://www.sorus.run/blog/rust-ci-from-first-principles/rust-ci-cd-practical-introduction) - [What actually happens during Rust CI?](https://www.sorus.run/blog/rust-ci-from-first-principles/what-actually-happens-during-rust-ci) - [Why is Rust CI so slow?](https://www.sorus.run/blog/rust-ci-from-first-principles/why-is-rust-ci-so-slow) - [Rust CI from first principles](https://www.sorus.run/blog/series/rust-ci-from-first-principles) - [Product updates](https://www.sorus.run/changelog) - [Contact Sorus](https://www.sorus.run/contact) - [Pricing & usage](https://www.sorus.run/docs/billing) - [Caching & reuse](https://www.sorus.run/docs/concepts/reuse) - [Explanation](https://www.sorus.run/docs/explanation) - [Connect a coding agent](https://www.sorus.run/docs/guides/agents) - [Read logs and download artifacts](https://www.sorus.run/docs/guides/artifacts) - [Authenticate the CLI](https://www.sorus.run/docs/guides/authentication) - [Run Sorus from CI](https://www.sorus.run/docs/guides/ci) - [Job environment](https://www.sorus.run/docs/guides/environment) - [Install the agent skill](https://www.sorus.run/docs/guides/install-skill) - [Set up your organization](https://www.sorus.run/docs/guides/organization) - [Inspect and recover a job](https://www.sorus.run/docs/guides/results) - [Security boundaries](https://www.sorus.run/docs/guides/security) - [Declare test services](https://www.sorus.run/docs/guides/services) - [Sign up for Sorus](https://www.sorus.run/docs/guides/signup) - [Prepare source and resume an upload](https://www.sorus.run/docs/guides/source) - [Select and verify a toolchain](https://www.sorus.run/docs/guides/toolchains) - [Troubleshoot a failed job](https://www.sorus.run/docs/guides/troubleshooting) - [How-to guides](https://www.sorus.run/docs/how-to-guides) - [Documentation](https://www.sorus.run/docs) - [Rust CI basics](https://www.sorus.run/docs/learn/rust-ci) - [How Sorus fits into a Rust workflow](https://www.sorus.run/docs/overview) - [Run your first Cargo check](https://www.sorus.run/docs/quickstart) - [API reference](https://www.sorus.run/docs/reference/api) - [CLI reference](https://www.sorus.run/docs/reference/cli) - [Reference](https://www.sorus.run/docs/reference) - [MCP reference](https://www.sorus.run/docs/reference/mcp) - [Test services reference](https://www.sorus.run/docs/reference/services) - [Versions & compatibility](https://www.sorus.run/docs/release-status) - [Run checks, tests and commands](https://www.sorus.run/docs/sorus-ci) - [Supported workloads](https://www.sorus.run/docs/supported-workloads) - [Tutorials](https://www.sorus.run/docs/tutorials) - [The cloud acceleration layerfor Rust teams.](https://www.sorus.run/) - [Open-source support](https://www.sorus.run/open-source) - [Pricing](https://www.sorus.run/pricing) - [Website privacy](https://www.sorus.run/privacy) - [One warm build layer for CI, developers and agents](https://www.sorus.run/product) - [Security overview](https://www.sorus.run/security) - [Evaluate Sorus for your team](https://www.sorus.run/teams) - [Service terms](https://www.sorus.run/terms) # Cargo benchmark > Recorded Cargo build and test results on Sorus and GitHub: timings, source revision, hardware, cache behavior and measurement history. Source: https://www.sorus.run/benchmarks/cargo [All benchmarks](https://www.sorus.run/benchmarks) Rust package manager and build tool. 3 recorded observations in this series. Evidence reviewed 2026-10-15. Each observation contains one run per platform. [Download repository data](https://www.sorus.run/benchmarks/data/cargo.json)[Measurement method](https://www.sorus.run/benchmarks/methodology) **Historical measurements.** These runs are not qualified as current-release or typical performance. Both commands use the committed lockfile. Equal vCPU counts do not match CPU model or per-core speed. ## Workload `cargo test --workspace --locked --exclude cargo --exclude benchsuite --exclude resolver-tests` Rust 1.98.0 · locked dependencies Repository[rust-lang/cargo](https://github.com/rust-lang/cargo)Source commit[98a09e7e7d62850f14e5b6132101fc1edd19a16f](https://github.com/rust-lang/cargo/commit/98a09e7e7d62850f14e5b6132101fc1edd19a16f) ## Measurements [2026-10-08 · Cold · 4 vCPU per side](https://www.sorus.run/benchmarks/cargo#2026-10-08-cold-4)[2026-10-08 · After a source change · 4 vCPU per side](https://www.sorus.run/benchmarks/cargo#2026-10-08-warm-4)[2026-10-07 · Cold · 4 vCPU Sorus / 2 vCPU GitHub](https://www.sorus.run/benchmarks/cargo#2026-10-07-cold-default) ### Cold 2026-10-08 · 4 vCPU per side · One run per side One cold run per platform. No build output was restored on either side. 34.4% less time to result on Sorus in this run. Sorus**104.49 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**159.17 s** 4 vCPU / 16 GB · AMD EPYC 7763 64-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 7.83 s | | Queue | 0.35 s | | Provisioning | 10.12 s | | Execution | 83.87 s | | Result delivery | 2.32 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 2.00 s | | Job setup | 2.00 s | | Harness overheadExcluded from score | 2.44 s | | Checkout | 1.02 s | | Toolchain | 8.47 s | | Toolchain readExcluded from score | 0.01 s | | Command | 145.68 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: d233b07ff1d10e645adfdd6535ecc734e927bca19026e785b6403c22c4feca58 ### After a source change 2026-10-08 · 4 vCPU per side · One run per side One comment was added after the Sorus priming run. Sorus reported no reused build output. This is a changed-source run, not evidence of warm-cache acceleration. 54.0% less time to result on Sorus in this run. Sorus**74.64 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**162.12 s** 4 vCPU / 16 GB · AMD EPYC 9V74 80-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Source change: one comment appended to `crates/cargo-util/src/lib.rs`. The exact patch and digest are included in the download. Cache configuration and timing breakdown #### Sorus Automatic only: whatever warm build state, compiler cache and build injections the platform applies with no repository configuration and no client option; the record lists what the measured job reported reusing **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 6.43 s | | Queue | 0.40 s | | Provisioning | 9.84 s | | Execution | 57.06 s | | Result delivery | 0.91 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: rust-lang/cargo's own CI has no cache step: main.yml has no cache step, and neither has audit.yml, contrib.yml or release.yml (.github/workflows/main.yml job test at 98a09e7e7d62850f14e5b6132101fc1edd19a16f, blob 8ebd281b6008ceb8023612d5b7c472384ed04e24), so the hosted side has no cache step and no priming job, and its measured run is one ordinary run after the declared change **Build-output reuse:** none reported - rust-lang/cargo's own CI has no cache step: main.yml has no cache step, and neither has audit.yml, contrib.yml or release.yml (.github/workflows/main.yml job test at 98a09e7e7d62850f14e5b6132101fc1edd19a16f, blob 8ebd281b6008ceb8023612d5b7c472384ed04e24) | Component | Duration | | --- | --- | | Queue | 3.00 s | | Job setup | 2.00 s | | Harness overheadExcluded from score | 4.93 s | | Checkout | 1.92 s | | Toolchain | 8.56 s | | Toolchain readExcluded from score | 0.02 s | | Command | 146.63 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: e229cf857fc3f28cf29bffeafbc3b19c544f500c166be41794e421669ed6bf21 ### Cold 2026-10-07 · 4 vCPU Sorus / 2 vCPU GitHub · One run per side One cold run per platform. No build output was restored on either side. Sorus**110.47 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**264.12 s** 2 vCPU / 8 GB · AMD EPYC 7763 64-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 11.30 s | | Queue | 0.74 s | | Provisioning | 10.07 s | | Execution | 86.50 s | | Result delivery | 1.86 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 3.00 s | | Job setup | 2.00 s | | Harness overheadExcluded from score | 4.95 s | | Checkout | 1.33 s | | Toolchain | 7.71 s | | Toolchain readExcluded from score | 0.01 s | | Command | 250.07 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: 352e8a341daca5a89a0e6a06e707c71284a98f44a1b17d40fad96b34a2172e9f Public downloads contain an allowlisted summary and original source digests. Full execution bundles remain internal. These observations cover one Sorus host and do not establish fleet, concurrency or customer-price comparisons. Measured projects are not implied customers or endorsers. [Back to all benchmarks](https://www.sorus.run/benchmarks) --- # Clap benchmark > Recorded Clap build and test results on Sorus and GitHub: timings, source revision, hardware, cache behavior and measurement history. Source: https://www.sorus.run/benchmarks/clap [All benchmarks](https://www.sorus.run/benchmarks) Command-line argument parser. 1 recorded observation in this series. Evidence reviewed 2026-10-15. Each observation contains one run per platform. [Download repository data](https://www.sorus.run/benchmarks/data/clap.json)[Measurement method](https://www.sorus.run/benchmarks/methodology) **Historical measurements.** These runs are not qualified as current-release or typical performance. Both commands use the committed lockfile. Equal vCPU counts do not match CPU model or per-core speed. ## Workload `cargo test --workspace --locked` Rust 1.98.0 · locked dependencies Repository[clap-rs/clap](https://github.com/clap-rs/clap)Source commit[8ab46fe22b4aa5c3bd09cc0e6c3fe9a75fc178a8](https://github.com/clap-rs/clap/commit/8ab46fe22b4aa5c3bd09cc0e6c3fe9a75fc178a8) ## Measurements [2026-10-07 · Cold · 4 vCPU Sorus / 2 vCPU GitHub](https://www.sorus.run/benchmarks/clap#2026-10-07-cold-default) ### Cold 2026-10-07 · 4 vCPU Sorus / 2 vCPU GitHub · One run per side One cold run per platform. No build output was restored on either side. Sorus**61.21 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**144.11 s** 2 vCPU / 8 GB · AMD EPYC 7763 64-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 3.12 s | | Queue | 0.94 s | | Provisioning | 8.65 s | | Execution | 46.24 s | | Result delivery | 2.27 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 4.00 s | | Job setup | 2.00 s | | Harness overheadExcluded from score | 4.78 s | | Checkout | 0.44 s | | Toolchain | 8.17 s | | Toolchain readExcluded from score | 0.02 s | | Command | 129.50 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: f44d2d18750e935270b0f2cb091d3f87d0af538fa52cebc492389ba957689061 Public downloads contain an allowlisted summary and original source digests. Full execution bundles remain internal. These observations cover one Sorus host and do not establish fleet, concurrency or customer-price comparisons. Measured projects are not implied customers or endorsers. [Back to all benchmarks](https://www.sorus.run/benchmarks) --- # Diesel benchmark > Recorded Diesel build and test results on Sorus and GitHub: timings, source revision, hardware, cache behavior and measurement history. Source: https://www.sorus.run/benchmarks/diesel [All benchmarks](https://www.sorus.run/benchmarks) Database query builder and ORM. 3 recorded observations in this series. Evidence reviewed 2026-10-15. Each observation contains one run per platform. [Download repository data](https://www.sorus.run/benchmarks/data/diesel.json)[Measurement method](https://www.sorus.run/benchmarks/methodology) **Historical measurements.** These runs are not qualified as current-release or typical performance. The project has no committed lockfile; matching resolved dependency versions were not independently verified. Equal vCPU counts do not match CPU model or per-core speed. ## Workload `cargo check --workspace` Rust 1.98.0 · independently resolved dependencies Repository[diesel-rs/diesel](https://github.com/diesel-rs/diesel)Source commit[14a8d3a5fc9ed28b1cda6c08d5e8d9dfdbdd8d72](https://github.com/diesel-rs/diesel/commit/14a8d3a5fc9ed28b1cda6c08d5e8d9dfdbdd8d72) ## Measurements [2026-10-08 · Cold · 4 vCPU per side](https://www.sorus.run/benchmarks/diesel#2026-10-08-cold-4)[2026-10-08 · After a source change · 4 vCPU per side](https://www.sorus.run/benchmarks/diesel#2026-10-08-warm-4)[2026-10-07 · Cold · 4 vCPU Sorus / 2 vCPU GitHub](https://www.sorus.run/benchmarks/diesel#2026-10-07-cold-default) ### Cold 2026-10-08 · 4 vCPU per side · One run per side One cold run per platform. No build output was restored on either side. 59.7% less time to result on Sorus in this run. Sorus**111.06 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**275.37 s** 4 vCPU / 16 GB · AMD EPYC 7763 64-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 3.10 s | | Queue | 0.46 s | | Provisioning | 9.37 s | | Execution | 96.61 s | | Result delivery | 1.53 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 71.00 s | | Job setup | 3.00 s | | Harness overheadExcluded from score | 4.21 s | | Checkout | 0.84 s | | Toolchain | 7.65 s | | Toolchain readExcluded from score | 0.02 s | | Command | 192.88 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: 8240c090038a9ea0425643b30d525d903ac7f75bfb21cc0fcf37fd375eb52aad ### After a source change 2026-10-08 · 4 vCPU per side · One run per side One comment was added after the Sorus priming run. Sorus reported no reused build output. This is a changed-source run, not evidence of warm-cache acceleration. Sorus**102.27 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**41.73 s** 4 vCPU / 16 GB · Intel(R) Xeon(R) 6973P-C Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Source change: one comment appended to `diesel/src/lib.rs`. The exact patch and digest are included in the download. Cache configuration and timing breakdown #### Sorus Automatic only: whatever warm build state, compiler cache and build injections the platform applies with no repository configuration and no client option; the record lists what the measured job reported reusing **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 3.08 s | | Queue | 0.44 s | | Provisioning | 9.62 s | | Execution | 87.80 s | | Result delivery | 1.32 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted The cache step of diesel-rs/diesel's own CI, Swatinem/rust-cache@f51f967e158417aafa338a1e46ab22095f07aa01 # v2.8.2: the step passes key: ${{ matrix.os }}-${{ matrix.backend }}-cargo-${{ hashFiles('**/Cargo.toml') }}, one more part of the cache key, which a change to one source file leaves as it was; the pinned commit is an ancestor of v2.9.2, 40 commits earlier (.github/workflows/ci.yml job check_and_test at 14a8d3a5fc9ed28b1cda6c08d5e8d9dfdbdd8d72, blob 2e5b39eafdbbb570970d94942a323ae579de6159), run as Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 (v2.9.2) with its defaults, workspaces ` -> target` and a shared-key per entry, so the measured job restores what the priming job saved: ~/.cargo's registry, git database and bin, and the target directory's dependency artifacts (it prunes workspace crates before saving); it sets CARGO_INCREMENTAL=0 **Build-output reuse:** reported - Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6: an exact key hit - target/debug/deps held 437 files before the command | Component | Duration | | --- | --- | | Queue | 3.00 s | | Job setup | 2.00 s | | Harness overheadExcluded from score | 4.73 s | | Checkout | 0.97 s | | Toolchain | 8.44 s | | Toolchain readExcluded from score | 0.01 s | | Cache restore | 3.88 s | | Harness restartExcluded from score | 0.00 s | | Command | 23.44 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - prepare-hosted's write of its state file and its exit, the harness's own work, end at no recorded instant, so they stay inside cache-restore - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: 32bc6fd2fd02629e4ef15971d4009dd61141eb83520b4a987e9557230a47ae11 ### Cold 2026-10-07 · 4 vCPU Sorus / 2 vCPU GitHub · One run per side One cold run per platform. No build output was restored on either side. Sorus**113.44 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**351.01 s** 2 vCPU / 8 GB · AMD EPYC 7763 64-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 3.85 s | | Queue | 0.51 s | | Provisioning | 9.23 s | | Execution | 99.09 s | | Result delivery | 0.77 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 2.00 s | | Job setup | 4.00 s | | Harness overheadExcluded from score | 3.31 s | | Checkout | 0.85 s | | Toolchain | 7.85 s | | Toolchain readExcluded from score | 0.02 s | | Command | 336.31 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: 103f1ce3d68e20b6371bb22b7bd44c963397e1b729312310e2a35c9ecd0bfe8d Public downloads contain an allowlisted summary and original source digests. Full execution bundles remain internal. These observations cover one Sorus host and do not establish fleet, concurrency or customer-price comparisons. Measured projects are not implied customers or endorsers. [Back to all benchmarks](https://www.sorus.run/benchmarks) --- # Hyper benchmark > Recorded Hyper build and test results on Sorus and GitHub: timings, source revision, hardware, cache behavior and measurement history. Source: https://www.sorus.run/benchmarks/hyper [All benchmarks](https://www.sorus.run/benchmarks) HTTP library for Rust. 1 recorded observation in this series. Evidence reviewed 2026-10-15. Each observation contains one run per platform. [Download repository data](https://www.sorus.run/benchmarks/data/hyper.json)[Measurement method](https://www.sorus.run/benchmarks/methodology) **Historical measurements.** These runs are not qualified as current-release or typical performance. The project has no committed lockfile; matching resolved dependency versions were not independently verified. Equal vCPU counts do not match CPU model or per-core speed. ## Workload `cargo test --features full` Rust 1.98.0 · independently resolved dependencies Repository[hyperium/hyper](https://github.com/hyperium/hyper)Source commit[e89d0d93d9566210ee95aea234a00952ebc4a202](https://github.com/hyperium/hyper/commit/e89d0d93d9566210ee95aea234a00952ebc4a202) ## Measurements [2026-10-07 · Cold · 4 vCPU Sorus / 2 vCPU GitHub](https://www.sorus.run/benchmarks/hyper#2026-10-07-cold-default) ### Cold 2026-10-07 · 4 vCPU Sorus / 2 vCPU GitHub · One run per side One cold run per platform. No build output was restored on either side. Sorus**59.99 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**120.10 s** 2 vCPU / 8 GB · AMD EPYC 9V74 80-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 2.31 s | | Queue | 1.05 s | | Provisioning | 8.59 s | | Execution | 47.16 s | | Result delivery | 0.89 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 2.00 s | | Job setup | 3.00 s | | Harness overheadExcluded from score | 5.77 s | | Checkout | 0.48 s | | Toolchain | 7.97 s | | Toolchain readExcluded from score | 0.02 s | | Command | 106.64 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: cc0d2dda55b271929c8ee0eef09cecd9cb78fad9a2b6b11dda6df0bc2fcc3d0c Public downloads contain an allowlisted summary and original source digests. Full execution bundles remain internal. These observations cover one Sorus host and do not establish fleet, concurrency or customer-price comparisons. Measured projects are not implied customers or endorsers. [Back to all benchmarks](https://www.sorus.run/benchmarks) --- # Rust CI benchmarks > Compare recorded Rust CI timings across eleven repositories. Explore cold runs, source changes, hardware, cache behavior and individual measurement details. Source: https://www.sorus.run/benchmarks Recorded build and test times across Rust repositories. Start with the summary, then open a repository for every measurement, command and cache detail. Cold-suite measurements: 2026-10-08 · Cold-suite evidence reviewed 2026-10-15 [All repositories](https://www.sorus.run/benchmarks#all-results)[Measurement method](https://www.sorus.run/benchmarks/methodology)[Download cold-suite data](https://www.sorus.run/benchmarks/results.json) Repositories measured11 With successful comparisons10 Cold-suite paired observations16 **Two separate measurement series.** Warm commit-history replays below were recorded on 19 October 2026. The cold baseline suite was collected on 5–8 October, with one run per side. Hardware and cache conditions vary; these measurements do not establish typical performance, current-release performance or cost savings. ## Where Sorus finished sooner Multi-commit commit-history replays with warm dependency prebuilds, followed by the largest observed time reductions in the 4 vCPU cold-run baseline suite. ### Hive Router · 15-commit history lathe-4cpu vs 4 vCPU GitHub Actions **3.3×**Faster whole job vs PR CI Sorus warm median (p90)79 s (112 s) GitHub Actions median258 s PR **3.4×**Faster test step vs PR CI Sorus warm median (p90)67 s (103 s) GitHub Actions median228 s PR 2026-10-19 · 12 warm replays · upstream n=30 `cargo sorus nextest run --workspace --exclude e2e --locked --features hive-router/graphiql` The hive-router/graphiql feature skips the npm asset build. This run used --override-version-check for nextest and -E all() to skip doctests, as upstream’s nextest step does. GitHub job time excludes queueing. ### GreptimeDB · 15-commit history lathe-4cpu vs 4 vCPU GitHub Actions **3.5×**Faster check step vs PR CI Sorus warm median (p90)258 s (264 s) GitHub Actions median891 s PR / 870 s merge queue (3.4×) 2026-10-19 · 14 warm replays · upstream n=30 `cargo check --workspace --all-targets` Only the matching --all-targets check step is compared. Upstream’s job also runs a second --all-features check that was not replayed, so whole-job times are not compared. One of the 15 replays fell back cold and is excluded from these warm statistics. ### 4 vCPU cold-run baselines (8 October 2026) [### Diesel · Cold **59.7%**Less time to result Sorus vs GitHub-hosted in this run Sorus111.06 s GitHub-hosted275.37 s 4 vCPU per side · 2026-10-08 · one run per side Cold run with no restored build output. Different CPUs; queueing included. View measurement](https://www.sorus.run/benchmarks/diesel#2026-10-08-cold-4)[### Cargo · After a source change **54.0%**Less time to result Sorus vs GitHub-hosted in this run Sorus74.64 s GitHub-hosted162.12 s 4 vCPU per side · 2026-10-08 · one run per side One comment added to the source. Sorus reported no build-output reuse. GitHub had no cache step. View measurement](https://www.sorus.run/benchmarks/cargo#2026-10-08-warm-4)[### Ripgrep · After a source change **39.7%**Less time to result Sorus vs GitHub-hosted in this run Sorus27.19 s GitHub-hosted45.06 s 4 vCPU per side · 2026-10-08 · one run per side One comment added to the source. Sorus reported no build-output reuse. GitHub had no cache step. View measurement](https://www.sorus.run/benchmarks/ripgrep#2026-10-08-warm-4) ## All repositories Warm history replays and the earlier single-run suite are shown separately. Filter either series by repository or vCPU comparison; no cross-repository average is calculated. Find a repositoryComparisonAll repositoriesSame vCPU countDifferent vCPU countsNo successful comparison 11 repositories ### Warm history replays · 19 October 2026 | Repository / hardware | Sorus warm median (p90) | GitHub Actions median | | --- | --- | --- | | [Hive Router](https://www.sorus.run/benchmarks#hive-router)lathe-4cpu vs 4 vCPU GitHub Actions · Same vCPU count15-commit history · 12 warm replays · upstream n=30 | Whole job: 79 s (112 s) Test step: 67 s (103 s) | 258 s PR (3.3×) 228 s PR (3.4×) | | [GreptimeDB](https://www.sorus.run/benchmarks#greptimedb)lathe-4cpu vs 4 vCPU GitHub Actions · Same vCPU count15-commit history · 14 warm replays · upstream n=30 | Check step: 258 s (264 s) | 891 s PR (3.5×)870 s merge queue (3.4×) | These are warm-sample medians, with p90 in parentheses. Read the commands and exclusions above. Equal vCPU counts do not match CPU model or per-core speed. ### Historical cold and changed-source suite · 5–8 October 2026 | Repository / hardware | Cold run | After a source change | | --- | --- | --- | | Sorus | GitHub | Sorus | GitHub | | [Cargo](https://www.sorus.run/benchmarks/cargo)4 vCPU per side2026-10-08 | 104.49 s34.4% less time | 159.17 s | 74.64 s54.0% less time | 162.12 s | | [Clap](https://www.sorus.run/benchmarks/clap)4 vCPU Sorus / 2 vCPU GitHub2026-10-07 | 61.21 s | 144.11 s | Not measured | | [Diesel](https://www.sorus.run/benchmarks/diesel)4 vCPU per side2026-10-08 | 111.06 s59.7% less time | 275.37 s | 102.27 s | 41.73 s | | [Hyper](https://www.sorus.run/benchmarks/hyper)4 vCPU Sorus / 2 vCPU GitHub2026-10-07 | 59.99 s | 120.10 s | Not measured | | [Regex](https://www.sorus.run/benchmarks/regex)4 vCPU Sorus / 2 vCPU GitHub2026-10-07 | 201.39 s | 227.01 s | Not measured | | [Ripgrep](https://www.sorus.run/benchmarks/ripgrep)4 vCPU per side2026-10-08 | 30.63 s3.4% less time | 31.70 s | 27.19 s39.7% less time | 45.06 s | | [Rust Analyzer](https://www.sorus.run/benchmarks/rust-analyzer)Both commands failed2026-10-05 | No successful result | Not measured | | [Serde](https://www.sorus.run/benchmarks/serde)4 vCPU Sorus / 2 vCPU GitHub2026-10-07 | 28.17 s | 57.06 s | Not measured | | [Tokio](https://www.sorus.run/benchmarks/tokio)4 vCPU per side2026-10-08 | 144.95 s37.4% less time | 231.46 s | 120.33 s20.7% less time | 151.82 s | No matching repositories. Clear the search or select all comparisons. “After a source change” adds one comment to the pinned source. Sorus reported no build-output reuse in these runs. GitHub restored rust-cache for Tokio and Diesel; Cargo and ripgrep have no cache step in their recorded CI configuration. The 4 vCPU comparisons match vCPU count and memory class, not CPU model or per-core speed. Other cold comparisons use 4 vCPU on Sorus and 2 vCPU on GitHub.

All repositories are shown. Search and filtering require JavaScript.

## What each result includes Exact source revision, Cargo command, toolchain, both machines, cache configuration and timing breakdown. Earlier observations and failed commands remain visible on each repository’s page. [Read the measurement method](https://www.sorus.run/benchmarks/methodology) ## Benchmark your repository Submit a Rust workload for evaluation. Independent OSS maintainers can apply for sponsored access; commercial teams can request an evaluation. [Evaluate a workload](https://www.sorus.run/contact)[OSS support](https://www.sorus.run/open-source) Named projects are not implied customers or endorsers. --- # Benchmark methodology > How Sorus records workload inputs, hardware, cache state, timing boundaries and outcomes for Rust CI comparisons. Source: https://www.sorus.run/benchmarks/methodology Each comparison records workload inputs, hardware, cache state, timing boundaries and outcomes. Results must include failures and regressions. ## Available results The library covers nine repositories. Sixteen successful paired observations across eight repositories were measured on 7–8 October 2026. The rust-analyzer commands failed on both platforms on 5 October and produced no successful comparison. Every observation has one sample per platform. Two earlier records remain on the Tokio and ripgrep pages, under their original timing method. These are historical results, not current-release claims. Downloads contain timing summaries and the original record digest. Internal operational identifiers and obsolete cost-model values are omitted. Complete raw evidence is not yet publicly available. ## Workload inputs A publishable comparison identifies the repository, exact commit, lockfile or resolved dependency set, compiler, target, profile, features, Cargo arguments and outcome. If one differs, state it prominently and narrow the conclusion. ## Hardware and cache state Record vCPU, memory, architecture, CPU model, region and runner class for both sides. Equal vCPU counts do not equal identical cores. Report cold, dependency-warm and build-warm measurements separately. State exactly which caches are enabled and what was restored. ## Runs after a source change The harness calls these runs “warm”: it primes Sorus, appends one comment to a library source file and measures the next run. All four retained Sorus records reported no build-output reuse, so the site labels them “after a source change”. They do not demonstrate warm-cache acceleration. The GitHub side follows the cache configuration in each project's pinned CI workflow. Tokio and Diesel prime and restore Swatinem/rust-cache. Cargo and ripgrep have no cache step, so their changed-source measurement runs once on a fresh runner. The download includes the patch, its digest and each side's reported reuse. ## Timing boundaries The 7–8 October records measure Sorus time-to-result from client invocation and GitHub-hosted time-to-result from job creation. It identifies excluded harness overhead. These boundaries still need to be declared next to the result; they must not be retroactively assigned to the older command-to-outcome observations. Show source upload, queueing, guest startup, execution and delivery when reliable component timings exist. Missing measurements remain missing, not zero. ## Samples and failures A release series must have a declared sample count and repeatable run procedure. Publish the distribution and justified summaries only when enough samples exist. Keep timeouts, refusals, platform errors and regressions in the evidence; show selected highlights alongside the full results, and do not call one observation a median. ## Selection and freshness The summary shows the newest successful cold and changed-source observation per repository, not the shortest duration. Repository pages retain all sixteen comparisons from the 7–8 October series, including different hardware pairs and the Diesel result where GitHub finished sooner. Failed rust-analyzer commands remain visible without a timing score. Highlights select each repository’s largest observed time reduction among successful comparisons with matching vCPU counts, then show the top three. Percentages describe those individual runs, not expected performance. The collection was reviewed on 15 October 2026. Reviewing evidence does not change its measurement date. These results stay historical and are not automatically promoted to current-release claims. No average across repositories or percentiles from single runs are published. ## Cost comparisons Customer-price comparisons require actual published or agreed prices, billing rules, dates and a representative usage scenario. An internal host-cost model is not a Sorus price. No cost comparison is currently published in this library. ## Publication checklist - A named, qualified release and the exact invocation on both sides. - Fixed source and declared dependency resolution, or a visible mismatch. - Hardware, environment and cache declarations. - Timing boundaries and excluded intervals. - Sample count, all outcomes and justified statistical summaries. - Downloadable scrubbed evidence with integrity digests and reproduction instructions. - A freshness review; stale results remain historical. - No implication that a measured project's maintainers are customers or endorse Sorus. ## Propose a workload [Submit a repository for evaluation](https://www.sorus.run/contact). Public case studies, logo use and customer attribution are agreed separately. --- # Regex benchmark > Recorded Regex build and test results on Sorus and GitHub: timings, source revision, hardware, cache behavior and measurement history. Source: https://www.sorus.run/benchmarks/regex [All benchmarks](https://www.sorus.run/benchmarks) Regular expression library. 1 recorded observation in this series. Evidence reviewed 2026-10-15. Each observation contains one run per platform. [Download repository data](https://www.sorus.run/benchmarks/data/regex.json)[Measurement method](https://www.sorus.run/benchmarks/methodology) **Historical measurements.** These runs are not qualified as current-release or typical performance. The project has no committed lockfile; matching resolved dependency versions were not independently verified. Equal vCPU counts do not match CPU model or per-core speed. ## Workload `cargo test --workspace` Rust 1.98.0 · independently resolved dependencies Repository[rust-lang/regex](https://github.com/rust-lang/regex)Source commit[72d650cb0a880a01ab6dc2137c0888e8f89740f7](https://github.com/rust-lang/regex/commit/72d650cb0a880a01ab6dc2137c0888e8f89740f7) ## Measurements [2026-10-07 · Cold · 4 vCPU Sorus / 2 vCPU GitHub](https://www.sorus.run/benchmarks/regex#2026-10-07-cold-default) ### Cold 2026-10-07 · 4 vCPU Sorus / 2 vCPU GitHub · One run per side One cold run per platform. No build output was restored on either side. Sorus**201.39 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**227.01 s** 2 vCPU / 8 GB · AMD EPYC 9V45 96-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 3.50 s | | Queue | 102.71 s | | Provisioning | 8.82 s | | Execution | 84.47 s | | Result delivery | 1.90 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 2.00 s | | Job setup | 2.00 s | | Harness overheadExcluded from score | 6.12 s | | Checkout | 0.99 s | | Toolchain | 9.47 s | | Toolchain readExcluded from score | 0.02 s | | Command | 212.55 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: c1c77b20285c5625f8bb7725c33ab213399837a80aa0ec4b696b7a26ded75ab6 Public downloads contain an allowlisted summary and original source digests. Full execution bundles remain internal. These observations cover one Sorus host and do not establish fleet, concurrency or customer-price comparisons. Measured projects are not implied customers or endorsers. [Back to all benchmarks](https://www.sorus.run/benchmarks) --- # Ripgrep benchmark > Recorded Ripgrep build and test results on Sorus and GitHub: timings, source revision, hardware, cache behavior and measurement history. Source: https://www.sorus.run/benchmarks/ripgrep [All benchmarks](https://www.sorus.run/benchmarks) Command-line search built in Rust. 3 recorded observations in this series. Evidence reviewed 2026-10-15. Each observation contains one run per platform. [Download repository data](https://www.sorus.run/benchmarks/data/ripgrep.json)[Measurement method](https://www.sorus.run/benchmarks/methodology) **Historical measurements.** These runs are not qualified as current-release or typical performance. Both commands use the committed lockfile. Equal vCPU counts do not match CPU model or per-core speed. ## Workload `cargo test --workspace --locked` Rust 1.98.0 · locked dependencies Repository[BurntSushi/ripgrep](https://github.com/BurntSushi/ripgrep)Source commit[3fce3b5bb0236da2df6d99672afb8a719642eca7](https://github.com/BurntSushi/ripgrep/commit/3fce3b5bb0236da2df6d99672afb8a719642eca7) ## Measurements [2026-10-08 · Cold · 4 vCPU per side](https://www.sorus.run/benchmarks/ripgrep#2026-10-08-cold-4)[2026-10-08 · After a source change · 4 vCPU per side](https://www.sorus.run/benchmarks/ripgrep#2026-10-08-warm-4)[2026-10-07 · Cold · 4 vCPU Sorus / 2 vCPU GitHub](https://www.sorus.run/benchmarks/ripgrep#2026-10-07-cold-default) ### Cold 2026-10-08 · 4 vCPU per side · One run per side One cold run per platform. No build output was restored on either side. 3.4% less time to result on Sorus in this run. Sorus**30.63 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**31.70 s** 4 vCPU / 16 GB · AMD EPYC 9V45 96-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 2.22 s | | Queue | 0.39 s | | Provisioning | 8.48 s | | Execution | 18.71 s | | Result delivery | 0.83 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 2.00 s | | Job setup | 3.00 s | | Harness overheadExcluded from score | 4.33 s | | Checkout | 0.55 s | | Toolchain | 6.58 s | | Toolchain readExcluded from score | 0.01 s | | Command | 19.57 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: 2c59b18b1cc2fd8050aad0786e84e184f930570d1a547b1bd93caf1de0625b37 ### After a source change 2026-10-08 · 4 vCPU per side · One run per side One comment was added after the Sorus priming run. Sorus reported no reused build output. This is a changed-source run, not evidence of warm-cache acceleration. 39.7% less time to result on Sorus in this run. Sorus**27.19 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**45.06 s** 4 vCPU / 16 GB · AMD EPYC 7763 64-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Source change: one comment appended to `crates/searcher/src/lib.rs`. The exact patch and digest are included in the download. Cache configuration and timing breakdown #### Sorus Automatic only: whatever warm build state, compiler cache and build injections the platform applies with no repository configuration and no client option; the record lists what the measured job reported reusing **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 3.45 s | | Queue | 0.42 s | | Provisioning | 8.80 s | | Execution | 12.80 s | | Result delivery | 1.71 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: BurntSushi/ripgrep's own CI has no cache step: ci.yml has no cache step, and neither has release.yml (.github/workflows/ci.yml job test at 3fce3b5bb0236da2df6d99672afb8a719642eca7, blob 4b88a75b9b9db4c8453087062bbe760654236c08), so the hosted side has no cache step and no priming job, and its measured run is one ordinary run after the declared change **Build-output reuse:** none reported - BurntSushi/ripgrep's own CI has no cache step: ci.yml has no cache step, and neither has release.yml (.github/workflows/ci.yml job test at 3fce3b5bb0236da2df6d99672afb8a719642eca7, blob 4b88a75b9b9db4c8453087062bbe760654236c08) | Component | Duration | | --- | --- | | Queue | 3.00 s | | Job setup | 2.00 s | | Harness overheadExcluded from score | 5.78 s | | Checkout | 0.63 s | | Toolchain | 8.32 s | | Toolchain readExcluded from score | 0.02 s | | Command | 31.11 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: e51165a3b6ed6abe1b87679a76b7bd3c853df809b8461ba7eef6d10e141626db ### Cold 2026-10-07 · 4 vCPU Sorus / 2 vCPU GitHub · One run per side One cold run per platform. No build output was restored on either side. Sorus**31.62 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**66.74 s** 2 vCPU / 8 GB · AMD EPYC 7763 64-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 2.12 s | | Queue | 0.23 s | | Provisioning | 8.61 s | | Execution | 19.02 s | | Result delivery | 1.63 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 2.00 s | | Job setup | 2.00 s | | Harness overheadExcluded from score | 5.53 s | | Checkout | 0.41 s | | Toolchain | 8.32 s | | Toolchain readExcluded from score | 0.01 s | | Command | 54.00 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: 29e422e731f162f68e19f34ee448717e3736ed2f3fa290b84f29668a79aca522 ## Earlier timing method The 2026-10-05 record uses the historical command-to-outcome boundary. It is kept separately from the time-to-result series above. Sorus: 32.34 s (lathe-8cpu · 8 vCPU / 32 GiB). GitHub-hosted: 64.52 s (GitHub-hosted · 2 vCPU). Earlier record limitations - One paired observation (n = 1 per side). No percentiles, repeatability estimate or warm-state measurement. - Historical command-to-outcome boundary: the Sorus client invocation and hosted command steps are not the newer full time-to-result boundary. - Unequal sizes: Sorus 8 vCPU versus GitHub-hosted 2 vCPU. Do not interpret this as an equal-hardware speedup. - Different host CPUs and environments. Matching a vCPU count does not match per-core performance. - One Sorus host; no fleet, saturation or concurrency claim. - The underlying evidence bundle is retained internally. This download is an allowlisted summary, not the complete original raw evidence. [Download earlier record](https://www.sorus.run/benchmarks/ripgrep.json) Public downloads contain an allowlisted summary and original source digests. Full execution bundles remain internal. These observations cover one Sorus host and do not establish fleet, concurrency or customer-price comparisons. Measured projects are not implied customers or endorsers. [Back to all benchmarks](https://www.sorus.run/benchmarks) --- # Rust Analyzer benchmark > Recorded Rust Analyzer build and test results on Sorus and GitHub: timings, source revision, hardware, cache behavior and measurement history. Source: https://www.sorus.run/benchmarks/rust-analyzer [All benchmarks](https://www.sorus.run/benchmarks) Language server for Rust. 1 recorded observation in this series. Evidence reviewed 2026-10-15. Each observation contains one run per platform. [Download repository data](https://www.sorus.run/benchmarks/data/rust-analyzer.json)[Measurement method](https://www.sorus.run/benchmarks/methodology) **Historical measurements.** These runs are not qualified as current-release or typical performance. Both commands use the committed lockfile. Equal vCPU counts do not match CPU model or per-core speed. ## Workload `cargo test --workspace --locked` Rust 1.98.0 · locked dependencies Repository[rust-lang/rust-analyzer](https://github.com/rust-lang/rust-analyzer)Source commit[7ac8fbfeecbf8030eb9f9058313c21c933bcdf1c](https://github.com/rust-lang/rust-analyzer/commit/7ac8fbfeecbf8030eb9f9058313c21c933bcdf1c) ## Measurements [2026-10-05 · Cold · 8 vCPU Sorus / 2 vCPU GitHub](https://www.sorus.run/benchmarks/rust-analyzer#2026-10-05-failed) ### Cold 2026-10-05 · 8 vCPU Sorus / 2 vCPU GitHub · One run per side Both Cargo commands failed with exit code 101. No successful comparison was produced; failed runs are excluded from timing highlights. Sorus: command failed. GitHub-hosted: command failed. No successful time-to-result comparison is available. Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** not recorded #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: 17e82cc7ba243acfef440b99d86d36f1a559cc7e4c15df4c9a44b6343b4abd74 · abb94c77eccd972aac4cf73312932263f113de736a2f0468b439049eb27874f9 Public downloads contain an allowlisted summary and original source digests. Full execution bundles remain internal. These observations cover one Sorus host and do not establish fleet, concurrency or customer-price comparisons. Measured projects are not implied customers or endorsers. [Back to all benchmarks](https://www.sorus.run/benchmarks) --- # Serde benchmark > Recorded Serde build and test results on Sorus and GitHub: timings, source revision, hardware, cache behavior and measurement history. Source: https://www.sorus.run/benchmarks/serde [All benchmarks](https://www.sorus.run/benchmarks) Serialization framework. 1 recorded observation in this series. Evidence reviewed 2026-10-15. Each observation contains one run per platform. [Download repository data](https://www.sorus.run/benchmarks/data/serde.json)[Measurement method](https://www.sorus.run/benchmarks/methodology) **Historical measurements.** These runs are not qualified as current-release or typical performance. The project has no committed lockfile; matching resolved dependency versions were not independently verified. Equal vCPU counts do not match CPU model or per-core speed. ## Workload `cargo test --workspace` Rust 1.98.0 · independently resolved dependencies Repository[serde-rs/serde](https://github.com/serde-rs/serde)Source commit[6693a89cca77e0151437da1c7f890090b9ebf04c](https://github.com/serde-rs/serde/commit/6693a89cca77e0151437da1c7f890090b9ebf04c) ## Measurements [2026-10-07 · Cold · 4 vCPU Sorus / 2 vCPU GitHub](https://www.sorus.run/benchmarks/serde#2026-10-07-cold-default) ### Cold 2026-10-07 · 4 vCPU Sorus / 2 vCPU GitHub · One run per side One cold run per platform. No build output was restored on either side. Sorus**28.17 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**57.06 s** 2 vCPU / 8 GB · Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 2.69 s | | Queue | 0.18 s | | Provisioning | 8.72 s | | Execution | 14.28 s | | Result delivery | 2.30 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 2.00 s | | Job setup | 3.00 s | | Harness overheadExcluded from score | 4.34 s | | Checkout | 0.57 s | | Toolchain | 8.75 s | | Toolchain readExcluded from score | 0.01 s | | Command | 42.74 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: 1a040f6223818731680a971f1c9b6df558097c49da727de3ab3f384c6cea5005 Public downloads contain an allowlisted summary and original source digests. Full execution bundles remain internal. These observations cover one Sorus host and do not establish fleet, concurrency or customer-price comparisons. Measured projects are not implied customers or endorsers. [Back to all benchmarks](https://www.sorus.run/benchmarks) --- # Tokio benchmark > Recorded Tokio build and test results on Sorus and GitHub: timings, source revision, hardware, cache behavior and measurement history. Source: https://www.sorus.run/benchmarks/tokio [All benchmarks](https://www.sorus.run/benchmarks) Asynchronous runtime for Rust. 3 recorded observations in this series. Evidence reviewed 2026-10-15. Each observation contains one run per platform. [Download repository data](https://www.sorus.run/benchmarks/data/tokio.json)[Measurement method](https://www.sorus.run/benchmarks/methodology) **Historical measurements.** These runs are not qualified as current-release or typical performance. The project has no committed lockfile; matching resolved dependency versions were not independently verified. Equal vCPU counts do not match CPU model or per-core speed. ## Workload `cargo test --workspace --features full` Rust 1.98.0 · independently resolved dependencies Repository[tokio-rs/tokio](https://github.com/tokio-rs/tokio)Source commit[9bc516aee195af7cf37cd79c7a35c4a889501ff9](https://github.com/tokio-rs/tokio/commit/9bc516aee195af7cf37cd79c7a35c4a889501ff9) ## Measurements [2026-10-08 · Cold · 4 vCPU per side](https://www.sorus.run/benchmarks/tokio#2026-10-08-cold-4)[2026-10-08 · After a source change · 4 vCPU per side](https://www.sorus.run/benchmarks/tokio#2026-10-08-warm-4)[2026-10-07 · Cold · 4 vCPU Sorus / 2 vCPU GitHub](https://www.sorus.run/benchmarks/tokio#2026-10-07-cold-default) ### Cold 2026-10-08 · 4 vCPU per side · One run per side One cold run per platform. No build output was restored on either side. 37.4% less time to result on Sorus in this run. Sorus**144.95 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**231.46 s** 4 vCPU / 16 GB · AMD EPYC 7763 64-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 2.33 s | | Queue | 0.23 s | | Provisioning | 8.97 s | | Execution | 132.28 s | | Result delivery | 1.14 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 2.00 s | | Job setup | 3.00 s | | Harness overheadExcluded from score | 4.25 s | | Checkout | 1.22 s | | Toolchain | 8.20 s | | Toolchain readExcluded from score | 0.02 s | | Command | 217.03 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: 5ad1ca815e94faf80fee5ae9e9e710cd522cdcc066806bb758c4a14c572fa8b9 ### After a source change 2026-10-08 · 4 vCPU per side · One run per side One comment was added after the Sorus priming run. Sorus reported no reused build output. This is a changed-source run, not evidence of warm-cache acceleration. 20.7% less time to result on Sorus in this run. Sorus**120.33 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**151.82 s** 4 vCPU / 16 GB · AMD EPYC 9V45 96-Core Processor Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Source change: one comment appended to `tokio/src/lib.rs`. The exact patch and digest are included in the download. Cache configuration and timing breakdown #### Sorus Automatic only: whatever warm build state, compiler cache and build injections the platform applies with no repository configuration and no client option; the record lists what the measured job reported reusing **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 3.59 s | | Queue | 0.71 s | | Provisioning | 9.05 s | | Execution | 105.88 s | | Result delivery | 1.10 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted The cache step of tokio-rs/tokio's own CI, Swatinem/rust-cache@v2: the step passes cache-bin: ${{ matrix.os != 'macos-latest' }}, true on ubuntu-latest, the action's default (.github/workflows/ci.yml job test-workspace-all-features at 9bc516aee195af7cf37cd79c7a35c4a889501ff9, blob 4a0da57dda31f2431dc6c7ccb04c074f6ead1d5a), run as Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 (v2.9.2) with its defaults, workspaces ` -> target` and a shared-key per entry, so the measured job restores what the priming job saved: ~/.cargo's registry, git database and bin, and the target directory's dependency artifacts (it prunes workspace crates before saving); it sets CARGO_INCREMENTAL=0 **Build-output reuse:** reported - Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6: an exact key hit - target/debug/deps held 323 files before the command | Component | Duration | | --- | --- | | Queue | 2.00 s | | Job setup | 3.00 s | | Harness overheadExcluded from score | 5.68 s | | Checkout | 1.12 s | | Toolchain | 6.58 s | | Toolchain readExcluded from score | 0.02 s | | Cache restore | 3.69 s | | Harness restartExcluded from score | 0.00 s | | Command | 135.43 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - prepare-hosted's write of its state file and its exit, the harness's own work, end at no recorded instant, so they stay inside cache-restore - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: 31dc65b642073844c1243ea8501a6da740f91e6607a94ca80dd2f441a521e482 ### Cold 2026-10-07 · 4 vCPU Sorus / 2 vCPU GitHub · One run per side One cold run per platform. No build output was restored on either side. Sorus**148.77 s** 4 vCPU / 16 GiB · AMD EPYC GitHub-hosted**307.39 s** 2 vCPU / 8 GB · INTEL(R) XEON(R) PLATINUM 8573C Sorus: client invocation to result. GitHub: job creation to command exit, excluding benchmark harness overhead. Both include queueing. [Timing boundaries](https://www.sorus.run/benchmarks/methodology#timing-boundaries). Cache configuration and timing breakdown #### Sorus None: every job boots a fresh guest from the release image with no build cache, no target directory and no Cargo home; a job under the gateway policy fetches its dependencies through its own endpoint **Build-output reuse:** none reported - Warm build state: the job recorded none - Compiler cache: the job reported no compile telemetry - Build injections: the job recorded none | Component | Duration | | --- | --- | | Submission | 3.70 s | | Queue | 0.11 s | | Provisioning | 8.96 s | | Execution | 133.47 s | | Result delivery | 2.53 s | #### Measurement gaps - Provisioning is not split into machine start and source delivery to the guest: the job record stores no platform_timing segments - Execution is not split into toolchain, dependency resolution, build and test: the job record marks only its start and end - Submission and result-delivery each span the harness's clock and the platform's; the offset between the two clocks is not measured #### GitHub-hosted None: no cache step; the job checks out the benchmark harness repository for the entry file and runs this harness, with no actions/cache, rust-cache or sccache step and no restored Cargo home or target directory **Build-output reuse:** not recorded | Component | Duration | | --- | --- | | Queue | 3.00 s | | Job setup | 2.00 s | | Harness overheadExcluded from score | 4.16 s | | Checkout | 1.08 s | | Toolchain | 9.98 s | | Toolchain readExcluded from score | 0.01 s | | Command | 291.32 s | #### Measurement gaps - The time from a developer's push to GitHub creating the job: the benchmark is dispatched, not pushed, so the harness has no push to time and starts at the job's created_at - The part that ends at the harness's checkout starts on GitHub's clock and ends on the runner's; the offset between the two clocks is not measured - The command is not split into dependency resolution, build and test Component times are diagnostic. They can span different clocks, and their sum can differ slightly from the scored duration. Missing components are not zero. Source record SHA-256: d31ea093678841364496ec615f1e262a80a974660baa51470c0904295bb90ef4 ## Earlier timing method The 2026-10-05 record uses the historical command-to-outcome boundary. It is kept separately from the time-to-result series above. Sorus: 137.05 s (lathe-8cpu · 8 vCPU / 32 GiB). GitHub-hosted: 147.37 s (GitHub-hosted · 8 vCPU / 32 GB). Earlier record limitations - One paired observation (n = 1 per side). No percentiles, repeatability estimate or warm-state measurement. - Historical command-to-outcome boundary: the Sorus client invocation and hosted command steps are not the newer full time-to-result boundary. - Both sides declare 8 vCPU and 32 GB-class memory. There is no committed lockfile or independently verified matching resolved dependency set. - Different host CPUs and environments. Matching a vCPU count does not match per-core performance. - One Sorus host; no fleet, saturation or concurrency claim. - The underlying evidence bundle is retained internally. This download is an allowlisted summary, not the complete original raw evidence. [Download earlier record](https://www.sorus.run/benchmarks/tokio.json) Public downloads contain an allowlisted summary and original source digests. Full execution bundles remain internal. These observations cover one Sorus host and do not establish fleet, concurrency or customer-price comparisons. Measured projects are not implied customers or endorsers. [Back to all benchmarks](https://www.sorus.run/benchmarks) --- # Blog > Articles on Rust CI, compilation, caching and measuring build performance from the Sorus team. Source: https://www.sorus.run/blog Rust CI, from the commands you run to the work behind them. ## Series ### [Rust CI from first principles](https://www.sorus.run/blog/series/rust-ci-from-first-principles) Understand Rust CI from the commands you run to the compilation graph, caching and measurement. 3 posts[Explore the series](https://www.sorus.run/blog/series/rust-ci-from-first-principles) ## Latest posts - 20 October 2026 ### [Why is Rust CI so slow?](https://www.sorus.run/blog/rust-ci-from-first-principles/why-is-rust-ci-so-slow) Understand compilation costs, critical paths and cache reuse, then measure the work behind your CI latency. - 13 October 2026 ### [What actually happens during Rust CI?](https://www.sorus.run/blog/rust-ci-from-first-principles/what-actually-happens-during-rust-ci) Follow Cargo and rustc through a workspace: compilation units, freshness, build scripts and the compiler. - 6 October 2026 ### [Rust CI/CD: a practical introduction](https://www.sorus.run/blog/rust-ci-from-first-principles/rust-ci-cd-practical-introduction) The Cargo commands, checks and GitHub Actions workflow that form a first Rust CI pipeline. --- # Rust CI/CD: a practical introduction > The Cargo commands, checks and GitHub Actions workflow that form a first Rust CI pipeline. Source: https://www.sorus.run/blog/rust-ci-from-first-principles/rust-ci-cd-practical-introduction Reviewed: 2026-10-06 Rust gives developers an unusually powerful set of tools for writing reliable software: its compiler catches entire categories of mistakes before code ever runs, its ownership system helps prevent memory-safety bugs, and tools like Clippy help maintain high standards across a codebase. But even with Rust’s guarantees, software development involves more than writing code that compiles. We need to know that our tests pass, changes haven’t broken anything, and every contribution meets the same quality standards. Continuous integration (CI) is about collecting evidence that your code meets the standards you set and behaves as you expect, so you can integrate changes with confidence. A well-designed Rust CI pipeline brings together the compiler, Clippy, automated tests, and other checks to provide consistent feedback on every change. In this article, we’ll explore what CI/CD means for Rust projects, introduce the essential Cargo commands, and build a working CI pipeline using GitHub Actions. We’ll also look at what these checks actually guarantee and why running them can sometimes be surprisingly expensive. ## 1. What is CI/CD? CI/CD stands for continuous integration and continuous delivery or deployment. Although the terms are often used together, they describe different parts of the software development process. ### Continuous integration Continuous integration (CI) is the practice of regularly integrating code changes into a codebase and automatically verifying those changes. Imagine you’re working on a Rust application with several other developers. One developer modifies an API, another updates a dependency, and a third introduces a new feature. Each change might work perfectly on its author’s machine. But that doesn’t necessarily mean it will work when combined with everyone else’s changes. A CI system helps address this problem. Whenever someone opens a pull request or pushes a commit, the system can automatically: 1. Download the latest source code. 2. Prepare the development environment. 3. Check that the code compiles. 4. Run linters and formatting checks. 5. Execute automated tests. 6. Report whether the checks succeeded. If something fails, developers receive feedback before the change is merged.
  1. Developer pushes code
  2. CI workflow starts
  3. Prepare environment
  4. Format, check, lint and test

All checks pass?

Yes

Ready for review and merge.

No

Report failures. The developer fixes problems and pushes code again, restarting the workflow.

CI reports a result for each change; fixes start the feedback loop again.
CI doesn’t replace code review or good engineering practices. Instead, it automates checks that would otherwise need to be performed manually. ### Continuous delivery and deployment Continuous delivery extends CI by ensuring that software can be released reliably. A delivery pipeline might build a production executable, package it into a container, or prepare a release artifact. Continuous deployment takes this a step further by automatically deploying successful changes to a production environment. Not every Rust project needs deployment. A command-line tool might publish releases to GitHub. A library might publish new versions to crates.io. A backend service might deploy containers to a production cluster. The specific delivery process depends on the application. For now, we’ll focus primarily on continuous integration: establishing that a change satisfies the project’s automated quality checks before it is merged. ## 2. Why Rust and CI work so well together One of Rust’s greatest strengths is how much work its compiler performs on our behalf. In many programming languages, entire categories of errors remain undetected until a program executes. Rust takes a different approach. Its type system and ownership model allow the compiler to reject many problematic programs before they’re run. For example, consider this code: ```rust fn main() { let message = String::from("Hello, Rust!"); let other = message; println!("{message}"); } ``` This program doesn’t compile. The ownership of message has been moved into other, so attempting to use message afterwards is an error. Rust detects that problem statically. In safe Rust, the compiler also enforces rules that prevent many forms of memory unsafety, including use-after-free errors and data races. These are powerful guarantees, particularly for systems programming. Of course, Rust isn’t magic. Programs can still contain incorrect business logic, deadlocks, resource leaks, and other defects. Unsafe code also requires additional care. Nevertheless, Rust’s compiler provides an exceptional foundation for reliable software. And it doesn’t stop there. Rust also has Clippy, a collection of additional lints that can identify suspicious code, potential mistakes, and non-idiomatic patterns. Combined with automated tests, these tools provide several complementary layers of verification. The real opportunity with CI is to apply those layers consistently. Instead of relying on every developer to remember which commands to run, we can make them an automatic part of the development process.
## 3. The essential Rust CI tools Most Rust CI pipelines are built around a handful of familiar Cargo commands. If you’ve already been developing in Rust, you’ll probably recognize most of them. What matters is understanding what each command contributes. ### Formatting: `cargo fmt` ```bash cargo fmt --all -- --check ``` Rust comes with `rustfmt`, which automatically formats code according to consistent conventions. The command above checks whether all workspace members are correctly formatted. The `--check` option is important: rather than modifying files, it reports whether any formatting changes would be required. This makes it suitable for CI. Formatting might seem relatively unimportant compared with testing, but consistent formatting removes a surprising amount of friction from collaborative development. Developers don’t need to debate indentation, spacing, or the layout of expressions. The formatter handles those decisions. ### Compilation checking: `cargo check` ```bash cargo check --workspace ``` `cargo check` asks Cargo to check whether the selected Rust packages compile without producing their normal final executable artifacts. It runs compiler analysis, including type checking and borrow checking, while generally avoiding machine-code generation for the crates being checked. This can make it substantially faster than a full build. There is an important nuance: build scripts and procedural macros may still need to be compiled into executable code. For a developer editing Rust code, `cargo check` is often one of the fastest ways to get useful compiler feedback. In CI, it provides an explicit compilation-checking step.
### Static analysis: `cargo clippy` ```bash cargo clippy --workspace --all-targets ``` Clippy is one of our favourite parts of the Rust ecosystem. The Rust compiler is already exceptionally good at enforcing the language’s rules. Clippy builds on that foundation with additional analysis. It includes lints for correctness problems, suspicious patterns, unnecessary complexity, and performance-related issues. Let’s look at a simple example. Suppose we’re writing a function that checks whether two values are equal: ```rust fn is_duplicate(left: u32, right: u32) -> bool { left == left } ``` This is valid Rust. But we’ve accidentally compared left with itself rather than comparing it with right. The comparison will always return true. Clippy’s `eq_op` lint identifies comparisons involving identical operands, which are frequently the result of typing or copy-and-paste mistakes. The correct implementation is: ```rust fn is_duplicate(left: u32, right: u32) -> bool { left == right } ``` That’s a simple example, but it illustrates an important point. Code can compile successfully and still contain mistakes that static analysis can help identify. Clippy’s lint collection contains many such checks, ranging from clear correctness problems to suggestions for writing more idiomatic Rust. ### Making Clippy part of CI Normally, some compiler and Clippy warnings don’t cause the command to fail. In CI, we often want stricter behaviour. One widely supported approach is: ```bash cargo clippy --workspace --all-targets -- -D warnings ``` The `-D warnings` argument treats warnings as errors. This means warnings detected by Clippy or `rustc` can cause the CI job to fail. Recent Cargo versions also support [configuring this behaviour](https://doc.rust-lang.org/cargo/reference/config.html#buildwarnings) through `build.warnings = "deny"` or the `CARGO_BUILD_WARNINGS=deny` environment variable. Clippy is particularly valuable because it catches issues that might otherwise escape notice during code review. It isn’t a substitute for tests, but it complements them extremely well. ### Testing: `cargo test` ```bash cargo test --workspace ``` Rust has excellent built-in support for automated testing. Unit tests can live alongside application code: ```rust pub fn add(a: i32, b: i32) -> i32 { a + b } #[cfg(test)] mod tests { use super::*; #[test] fn adds_two_numbers() { assert_eq!(add(2, 3), 5); } } ``` Running `cargo test` compiles the relevant test targets and executes the tests. If an assertion fails, the command reports a failure. Cargo also supports integration tests, documentation tests, and different test configurations. The precise set of tests executed depends on the selected packages, targets, and command options. Tests are important because compilation alone cannot establish that a program behaves as intended. The compiler can verify that a function accepts and returns the correct types. It generally cannot determine whether the function implements the business requirements you had in mind. Tests give us a way to verify specific behaviours. ### Building: `cargo build` ```bash cargo build --workspace ``` Finally, `cargo build` compiles the selected packages and produces their normal build outputs. Unlike `cargo check`, it performs the code-generation work needed to produce compiled artifacts. By default, Cargo uses the development profile. For an optimized release build, we can run: ```bash cargo build --workspace --release ``` Release builds can be significantly more expensive because optimization settings are different. ### Do we always need both `cargo check` and `cargo build` in CI? Not necessarily. Some commands perform overlapping work. For example, `cargo test` already compiles the code required for its test targets. A separate build step is useful when we specifically want to verify or produce the application’s normal build artifacts. Understanding which commands perform overlapping work becomes important when optimizing CI. We’ll explore that in detail in the next article.
## 4. Building your first Rust CI pipeline Now that we understand the tools, let’s put them together. We’ll use GitHub Actions, although the same principles apply to other CI providers. GitHub Actions executes workflows defined in YAML files stored in a repository. For this example, we’ll assume you have a Rust project hosted on GitHub and a committed `Cargo.lock` file. ### Create the workflow Create a file at: `.github/workflows/rust-ci.yml` Add the following: ```yaml name: Rust CI on: push: branches: [main] pull_request: permissions: contents: read env: RUSTUP_TOOLCHAIN: '1.97.1' jobs: rust-ci: name: Check, lint and test runs-on: ubuntu-24.04 steps: - name: Check out source uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: persist-credentials: false - name: Install Rust toolchain uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec with: toolchain: '1.97.1' components: clippy, rustfmt - name: Check formatting run: cargo fmt --all -- --check - name: Check compilation run: cargo check --workspace --all-targets --locked - name: Run Clippy run: cargo clippy --workspace --all-targets --locked -- -D warnings - name: Run tests run: cargo test --workspace --locked - name: Build run: cargo build --workspace --locked ``` This is a complete starting point for a conventional Rust workspace using the default feature configuration. The [checkout](https://github.com/actions/checkout) and [Rust-toolchain](https://github.com/dtolnay/rust-toolchain) actions follow their documented setup patterns. ### Understanding the workflow Let’s walk through what happens. First, GitHub detects a change. Our configuration runs on pull requests and pushes to the main branch. Second, GitHub prepares a runner. The runner is the machine that executes our workflow. For this example, we’re using an Ubuntu-based GitHub-hosted runner. Third, the workflow checks out the repository. The runner needs access to the source code before it can compile or test anything. Fourth, it installs Rust. We’ve pinned Rust 1.97.1 and requested the Clippy and `rustfmt` components. The Rust version and action revisions are pinned so updates are deliberate. Use the same Rust version locally, and change both toolchain values when upgrading. `RUSTUP_TOOLCHAIN` keeps a repository override from selecting a different version. Finally, it runs our checks. Formatting, compilation checking, linting, testing, and building run in sequence. If a step fails, GitHub Actions normally stops executing subsequent steps in that job and reports the failure. We can then inspect the logs to understand what happened. And that’s it: we now have a functioning Rust CI pipeline. ### A note about the example Real projects often need more configuration. Some require PostgreSQL or other external services. Others compile for multiple operating systems or architectures. Projects with optional features may need to test several feature combinations. For example: ```bash cargo test --workspace --all-features ``` This activates all available features for the selected packages, which is useful when those features are compatible with one another. However, not every project supports every feature simultaneously. The workflow should reflect the configurations your project actually promises to support. `--all-targets` selects Cargo targets such as tests and examples, not every operating system or CPU architecture. The key is to begin with a small, reliable pipeline and expand it as requirements become clearer.
## 5. What does passing CI actually guarantee? At this point, we have several automated checks. But what does it really mean when they all pass? This is worth understanding because different checks establish different properties. ### The compiler Successful compilation tells us that our code satisfies the Rust language rules checked by the compiler for that particular configuration. This includes an exceptionally valuable collection of type, ownership, borrowing, and safety checks. For safe Rust code, these rules prevent important classes of memory-safety defects. But compilation doesn’t establish that every function implements its intended behaviour. ### Clippy Clippy performs additional static analysis. It can identify suspicious code, potential mistakes, and patterns worth improving. However, it cannot detect every possible bug. And not every Clippy warning indicates incorrect behaviour. Some relate to style, maintainability, or performance. ### Automated tests Tests verify particular behaviours under particular conditions. If a test passes, we know that its assertions succeeded for that execution. But passing tests don’t necessarily cover every possible input, external dependency, or execution scenario. ### Putting the guarantees together The value of Rust CI comes from combining these layers. The compiler enforces important language guarantees. Clippy provides additional analysis. Tests verify selected behaviours. And CI ensures that the configured checks run consistently as code changes. This doesn’t make bugs impossible. It gives us a powerful, repeatable process for detecting problems early and preventing known failures from being merged. For us, that’s one of the most compelling aspects of developing with Rust.
## 6. Why can Rust CI be slow? There’s an interesting consequence of everything we’ve discussed. A Rust CI pipeline can perform a substantial amount of work. The compiler isn’t simply translating source code into machine instructions. It performs sophisticated analysis, processes dependencies, expands macros, checks types and borrowing rules, and, when required, generates machine code. Tests introduce additional compilation and execution work. And because our workflow runs several Cargo commands, some compilation work may be shared while other work must be performed separately. The situation becomes more interesting when we consider caching. When you build a project locally, Cargo may already have compatible compilation artifacts from previous builds. But a CI runner may begin without those artifacts. This distinction between a cold build and a warm build can have a major effect on performance. Even when caching is enabled, changes to dependencies, compiler versions, features, or compilation settings may prevent previous artifacts from being reused. None of this means Rust’s tooling is poorly designed. Many of these costs are associated with doing the sophisticated compilation and verification work that makes Rust so attractive. But as Rust projects grow, understanding and managing these costs becomes increasingly important. We’ll investigate them properly later in this series.
## 7. Practical advice for reliable Rust CI Before wrapping up, here are a few practices worth adopting as your Rust project grows. ### Keep your dependencies predictable Cargo uses `Cargo.lock` to record the resolved dependency versions of a project. For applications, committing this file is generally recommended. In our workflow, we’ve used `--locked`: ```bash cargo test --workspace --locked ``` This tells Cargo to fail rather than modify the lockfile or resolve dependencies differently. It requires an existing, up-to-date `Cargo.lock`. For libraries, dependency-testing policies can differ, but using a committed lockfile is still a reasonable choice for reproducible CI runs. ### Use a consistent Rust toolchain Rust evolves regularly, and new compiler or Clippy versions can introduce changes in diagnostics and lint behaviour. A project that passes on one toolchain version might produce different warnings or encounter compatibility issues on another. Using a consistent toolchain helps make failures easier to understand. For projects requiring stricter reproducibility, pin the Rust version rather than following the moving stable release. ### Think about the configurations you support Rust’s feature system is powerful, but it also means a crate can behave differently under different feature combinations. Similarly, code may compile on Linux but fail on Windows or macOS. Your CI configuration should reflect the configurations your users depend on. That doesn’t necessarily mean checking every theoretically possible combination. It means making deliberate decisions about what you test. ### Keep the pipeline understandable It’s tempting to add sophisticated caching, parallel execution, and numerous third-party actions immediately. Sometimes those optimizations are justified. But a complicated CI system introduces its own maintenance burden. For a new project, a simple pipeline that provides reliable feedback is usually a better starting point. Once you’ve established how long your checks take and where the time goes, you can make informed optimization decisions. ## 8. Where do we go from here? We’ve now covered the fundamentals of Rust continuous integration. We know what CI is, why Rust’s tooling makes it particularly valuable, and how to configure an automated pipeline using GitHub Actions. We’ve also introduced five important commands: - `cargo fmt` - `cargo check` - `cargo clippy` - `cargo test` - `cargo build` But we’ve only scratched the surface of what happens when we execute them. For example, when you run `cargo check`, how does Cargo decide which dependencies need to be compiled? Does `cargo test` perform the same compilation work as `cargo build`? And why can changing a seemingly insignificant line of code sometimes trigger substantial recompilation? These questions lead us into the internal workings of Cargo and the Rust compiler. In the next article, [What actually happens during Rust CI?](https://www.sorus.run/blog/rust-ci-from-first-principles/what-actually-happens-during-rust-ci), we’ll follow a CI run from source checkout through dependency resolution, compilation, and test execution. We’ll examine the different responsibilities of Cargo and `rustc`, how they coordinate compilation, and why understanding their behaviour is essential to building faster Rust CI systems. Rust’s compiler is one of its greatest strengths. Understanding how it works is the first step toward making the most of it. Rust CI from first principles is an educational series by Sorus, exploring Rust compilation, testing, continuous integration, and developer productivity. ## Further reading - [Cargo check and target selection](https://doc.rust-lang.org/cargo/commands/cargo-check.html) - [Cargo test](https://doc.rust-lang.org/cargo/commands/cargo-test.html) - [Clippy usage](https://doc.rust-lang.org/clippy/usage.html) - [Clippy’s `eq_op` lint](https://rust-lang.github.io/rust-clippy/master/index.html#eq_op) --- # What actually happens during Rust CI? > Follow Cargo and rustc through a workspace: compilation units, freshness, build scripts and the compiler. Source: https://www.sorus.run/blog/rust-ci-from-first-principles/what-actually-happens-during-rust-ci Reviewed: 2026-10-13 ## Introduction: What happens when you run `cargo test`? In [the first article of this series](https://www.sorus.run/blog/rust-ci-from-first-principles/rust-ci-cd-practical-introduction), we explored the fundamentals of Rust continuous integration. We introduced the tools that make Rust CI so powerful, from the compiler’s type and ownership checks to Clippy and automated testing. We also built a simple CI pipeline using GitHub Actions. But what actually happens when that pipeline runs? Consider these familiar commands: ```bash cargo check cargo clippy cargo test cargo build ``` They look straightforward. Yet behind them is a sophisticated system responsible for resolving dependencies, planning compilation, scheduling work, checking types and ownership rules, generating machine code, and executing tests. That system has two principal components: Cargo is Rust’s package manager and build orchestrator. It decides what needs to be compiled, in what configuration, and in what order. `rustc` is the Rust compiler. It takes individual Rust crates and performs the analysis and compilation needed to produce metadata, libraries, or executable code. Understanding how these components cooperate is essential if we want to understand Rust CI performance. In this article, we’ll follow a small Rust workspace through a CI run, from source checkout to test execution. Along the way, we’ll investigate three important questions: - How does Cargo decide what work needs to happen? - What actually happens inside the Rust compiler? - Why do `cargo check`, `cargo build`, `cargo clippy`, and `cargo test` perform different amounts of work? By the end, you’ll have a mental model of the Rust compilation pipeline that will help you understand everything from everyday compiler errors to advanced CI optimizations.
## 1. A simple Rust workspace Rather than discussing compilation entirely in the abstract, let’s begin with a small example. Imagine we’re developing a Rust application containing two crates. The first is a library providing some shared functionality. The second is a command-line application that depends on that library. Our project looks like this: ```text example-workspace/ ├── Cargo.toml ├── Cargo.lock └── crates/ ├── core/ │ ├── Cargo.toml │ └── src/ │ └── lib.rs └── app/ ├── Cargo.toml ├── src/ │ └── main.rs └── tests/ └── greeting.rs ``` The workspace manifest is simple. `Cargo.toml` ```toml [workspace] members = [ "crates/core", "crates/app", ] resolver = "2" ``` Our library crate has the following manifest. `crates/core/Cargo.toml` ```toml [package] name = "ci-core" version = "0.1.0" edition = "2021" ``` And a small implementation. `crates/core/src/lib.rs` ````rust /// Returns a friendly greeting. /// /// ``` /// assert_eq!( /// ci_core::greet("Ferris"), /// "Hello, Ferris!" /// ); /// ``` pub fn greet(name: &str) -> String { format!("Hello, {name}!") } #[cfg(test)] mod tests { use super::*; #[test] fn test_greeting() { assert_eq!(greet("Rust"), "Hello, Rust!"); } } ```` Our application depends on that library. `crates/app/Cargo.toml` ```toml [package] name = "ci-app" version = "0.1.0" edition = "2021" [dependencies] ci-core = { path = "../core" } ``` Its implementation is equally simple. `crates/app/src/main.rs` ```rust fn main() { println!("{}", ci_core::greet("Rust")); } ``` We can also add an integration test. `crates/app/tests/greeting.rs` ```rust use ci_core::greet; #[test] fn test_application_greeting() { assert_eq!(greet("World"), "Hello, World!"); } ``` That’s our entire example. It’s deliberately small, but it contains enough structure to demonstrate several important compilation behaviours. We have a workspace, two packages, a dependency between crates, unit tests, integration tests, and a documentation test. We’ll use this same workspace throughout the article. To reproduce the examples, create these files with a recent stable Rust toolchain and run `cargo generate-lockfile` from the workspace root. The examples were checked with Rust 1.97.1. Commit `Cargo.lock` to use the `--locked` workflow from part 1. ## 2. From GitHub Actions to Cargo Let’s imagine we’ve pushed a change to GitHub. Our CI pipeline starts and executes: ```bash cargo test --workspace ``` Before this command runs, the CI system has already performed some preparation. It has provisioned a runner, checked out our repository, and prepared the Rust toolchain. These activities matter for overall CI performance, but they happen outside the Rust compilation process. Once the runner invokes Cargo, responsibility shifts to Rust’s build tooling. It’s useful to distinguish these responsibilities.
  1. GitHub Actions
  2. Prepare runner and toolchain
  3. Invoke Cargo
  4. Resolve project and plan work
  5. Run rustc compilation jobs
  6. Execute tests
  7. Return results to CI
CI prepares the environment; Cargo plans and runs the Rust build.
GitHub Actions doesn’t ordinarily decide which Rust crates need compiling. It doesn’t understand our workspace’s internal dependency graph or know which compiler artifacts can be reused. Instead, it invokes Cargo and relies on Cargo to manage those decisions. This distinction will become important when we explore CI optimization. There are opportunities to improve performance at the CI orchestration level, but there are also opportunities within the Rust build process itself. They’re different problems. ## 3. How Cargo understands your project When Cargo starts, its first task is to understand what we’re asking it to build. It reads the relevant Cargo manifests and determines which packages, dependencies, targets, and features are involved.
### Packages, crates, and targets These terms are closely related, but they aren’t interchangeable. A package is the unit described by a `Cargo.toml` manifest. A crate is a Rust compilation unit: a library or binary target that `rustc` compiles. A single package can contain multiple compilation targets. For example, our `ci-app` package contains a binary target and an integration-test target. Our `ci-core` package contains a library target. Cargo can also compile that library in a special configuration for unit testing. Consequently, a package doesn’t always correspond to exactly one compiler invocation. This is our first important insight. The number of packages in a Rust workspace doesn’t directly tell us how many compilation jobs Cargo will perform. ### Dependency resolution Cargo also needs to understand which packages depend on which others. In our example, `ci-app` depends on `ci-core`. The relationship is straightforward:
Application package dependency ci-app depends on ci-core. The arrow points from the application to its dependency. ci-coreci-app depends on
The package dependency points from ci-app to ci-core.
The direction of the arrow indicates a dependency, not execution order. Before Cargo can compile our application, it needs the appropriate compiled output from the library it depends on. For a real application, this graph can contain hundreds or thousands of packages. Cargo must also account for dependency versions and selected features. If we introduce third-party dependencies from crates.io, Cargo consults the manifests, resolves the dependency requirements, and uses `Cargo.lock` to preserve the selected versions. ### Inspecting the dependency graph We can see our workspace’s dependency relationships by running: ```bash cargo tree ``` This displays a dependency tree for the selected packages. For projects with more complicated feature configurations, we can also run: ```bash cargo tree -e features ``` Cargo’s metadata command provides structured information about the workspace and its resolved dependencies: ```bash cargo metadata --format-version 1 ``` These tools are useful for understanding what a project depends on. But there’s an important limitation. The package dependency graph is not the complete compilation graph. Cargo still needs to determine exactly which compilation jobs are required for the command we’ve requested. That’s our next subject. ## 4. From dependencies to compilation jobs When we run: ```bash cargo build --workspace ``` Cargo needs to compile our library and application. At a conceptual level, the process looks like this:
  1. Compile ci-core
  2. Compile ci-app
The application needs the library’s compiled output.
But now suppose we run: ```bash cargo test --workspace ``` The situation becomes more complicated. Cargo may need to compile: - The library in its normal configuration. - The library as a unit-test executable. - The application as a test target. - The application’s integration-test executable. - Other required artifacts and documentation tests. Some of these compilations can share dependencies. Others require distinct compilation configurations. The reason is that a crate’s compilation isn’t determined solely by its source files. ### Introducing Cargo compilation units Internally, Cargo represents build work using compilation units. A unit identifies a particular piece of compilation work, incorporating information such as its target, compilation mode, profile, selected features, and compilation platform. For example, compiling a library normally is not necessarily the same unit as compiling that library with the Rust test harness enabled. Similarly, compiling a crate for the host architecture isn’t necessarily equivalent to compiling it for a different target architecture. This means Cargo can create multiple compilation units associated with the same package. And those units form their own dependency graph. For our example workspace, a simplified portion of the test compilation graph might look like this:
Separate normal and unit-test compilations The normal core library compilation supplies the application integration test and application binary. The core library's unit-test compilation is a separate unit. Core librarynormal compilation Core libraryunit-test compilation Applicationintegration test Applicationbinary
Arrows show outputs consumed by downstream compilation units. The unit-test build is separate.
Notice that the unit-test compilation of the core library is separate from its normal library compilation. That’s because the test harness changes how the crate is compiled. The diagram is intentionally simplified. It isn’t a literal dump of Cargo’s internal unit graph. Cargo also needs to account for additional build modes, dependencies, and test execution steps. On nightly Cargo, an unstable [`--unit-graph` feature](https://doc.rust-lang.org/cargo/reference/unstable.html#unit-graph) can expose the internal compilation-unit graph as JSON. Unlike `cargo tree`, it represents the work associated with a particular Cargo command.
### Scheduling compilation work Once Cargo has established the necessary relationships, it can schedule the jobs. Dependencies must be available before compilation jobs that consume their outputs can proceed. But independent jobs can execute concurrently. For example, if our application depended on two unrelated libraries, Cargo could potentially compile them in parallel. This is one reason Rust compilation can use multiple CPU cores effectively. However, parallelism is constrained by the dependency graph. If crate B depends on crate A, then the relevant output of A must exist before B can finish compiling. Adding more CPU cores cannot eliminate that dependency. We’ll return to this observation when discussing CI performance.
## 5. How Cargo knows whether compilation is necessary Here’s an interesting question. Suppose we run: ```bash cargo build --workspace ``` And then immediately run the same command again. Why is the second invocation normally much faster? The answer is that Cargo tracks the freshness of compilation units. ### Fresh and dirty units For each required compilation unit, Cargo determines whether its existing outputs can be reused. A unit that is up to date is considered fresh. A unit that needs additional work is considered dirty. If we haven’t compiled the workspace before, the necessary artifacts won’t exist. Cargo therefore needs to perform the required compilation work. But after a successful build, Cargo can often reuse those artifacts on subsequent invocations. ### Fingerprints One of Cargo’s mechanisms for tracking freshness is its fingerprinting system. Conceptually, a fingerprint records information about the configuration and dependencies associated with a compilation unit. Cargo also uses dependency information and filesystem modification timestamps to determine whether source files or other inputs have changed. These mechanisms work together. It’s important not to think of a fingerprint as simply a hash of the source code. Cargo’s freshness logic is more sophisticated, incorporating compiler inputs, dependency relationships, and filesystem-based checks. The [official Cargo implementation documentation](https://doc.rust-lang.org/nightly/nightly-rustc/cargo/core/compiler/fingerprint/index.html) describes these mechanisms and how changes can propagate through dependencies. ### A small experiment Try running: ```bash cargo check --workspace -vv ``` Then run it again: ```bash cargo check --workspace -vv ``` The `-vv` flag enables very verbose output. On the first invocation, Cargo may need to compile our crates. On the second, assuming nothing relevant has changed, Cargo should be able to identify the corresponding work as fresh. The verbose output helps us see which units Cargo considers fresh and which compiler commands it invokes. Now modify `crates/core/src/lib.rs` and run the command again. Cargo must reassess which units remain fresh. Because our application depends on the core library, changes to the library can also affect downstream compilation work. ### An important limitation Cargo doesn’t generally determine freshness by proving whether a source change is semantically irrelevant to all downstream users. For example, changing the implementation of a function without changing its public signature can still trigger downstream work. The precise outcome depends on the compilation units, dependency artifacts, and compiler configuration. This distinction between what actually changed and what Cargo can safely reuse is extremely important. It deserves its own detailed investigation, which we’ll cover in a later article: How Does Cargo Know What Needs Recompiling? For now, the main takeaway is that Cargo decides whether compilation work is necessary before executing the relevant jobs.
## 6. Build scripts and procedural macros So far, our workspace contains ordinary Rust source code. But many real-world Rust projects have another complication. They execute code during compilation. There are two particularly important mechanisms: build scripts and procedural macros. ### Build scripts Rust packages can include a file named `build.rs`. Cargo compiles this file into an executable and runs it before compiling the package that owns it. Build scripts are commonly used to generate source files, prepare native dependencies, or discover system-specific configuration. Let’s add a simple build script to our application: `crates/app/build.rs` ```rust fn main() { println!("cargo::rerun-if-changed=build.rs"); } ``` This script doesn’t perform any useful build preparation, but it illustrates the mechanism. When we build the application, Cargo must ensure that the build script has been compiled and executed as required. The `rerun-if-changed` instruction tells Cargo which file to watch when deciding whether the script needs to run again. Real build scripts may perform much more substantial work. For example, they might compile C code, invoke an external tool, or generate Rust source files. The [Cargo Book](https://doc.rust-lang.org/cargo/reference/build-scripts.html) describes the build-script lifecycle and how its inputs are tracked. ### Procedural macros Procedural macros provide another way for Rust code to execute during compilation. A procedural macro takes Rust tokens as input and produces Rust tokens as output. This enables powerful features such as custom derives and attribute macros. For example, the serde ecosystem provides procedural macros for deriving serialization implementations. These macros aren’t simply source-code substitutions performed by Cargo. The procedural macro itself is compiled into executable code that `rustc` loads and executes during macro expansion. That introduces additional compilation work. ### Host and target compilation There’s another subtlety. Build scripts and procedural macros generally execute on the machine performing the compilation. We call this the host. But the Rust application itself might be compiled for a different architecture. We call that the target. For example, we might compile on an x86-64 Linux machine while producing software intended to run on ARM. The build scripts and procedural macros need to run on the x86-64 host, while the application may need to be compiled for ARM. This means Cargo must account for multiple compilation contexts. It’s another reason that the real compilation graph can be more complex than the package dependency graph. ### Why this matters for `cargo check` This also explains an initially surprising behaviour. Even though `cargo check` generally avoids normal final machine-code generation for the crates being checked, it may still need to fully compile and execute build-time components. It can’t necessarily avoid compiling a procedural macro, because `rustc` needs to execute that macro to understand the source code that results from expansion. So checking Rust code doesn’t mean avoiding every form of code generation or execution. That distinction becomes particularly important when measuring build performance.
## 7. What actually happens inside `rustc`? We’ve now followed our CI job through Cargo’s responsibilities. Cargo has resolved the workspace, determined the required compilation units, checked freshness, and scheduled work. Eventually, it invokes `rustc`. This is where the Rust compiler takes over. And this is where some of the most impressive engineering in the Rust ecosystem lives. Rust’s compiler does much more than translate source code into machine instructions. It performs sophisticated analysis that makes Rust’s compile-time guarantees possible. Let’s follow the major stages. ### Stage 1: Parsing Rust source code The compiler begins by reading Rust source code and transforming it into a structured representation. This involves tokenization and parsing. Consider this source code: ```rust pub fn add(a: i32, b: i32) -> i32 { a + b } ``` The compiler transforms it into an abstract syntax tree, or AST. The AST represents the grammatical structure of the program. Rather than treating the function as arbitrary text, the compiler can reason about its parameters, return type, expressions, and statements. Syntax errors can be detected at this stage. ### Stage 2: Macro expansion and name resolution Rust supports several kinds of macros. Some are built into the language. Others are provided by libraries or implemented as procedural macros. During macro expansion, the compiler expands macro invocations into Rust syntax that can be analyzed further. For example: ```rust println!("Hello, Rust!"); ``` This statement uses the println! macro. The compiler must expand that invocation as part of understanding the program. Name resolution determines what identifiers refer to. For this call: ```rust ci_core::greet("Rust") ``` The compiler needs to resolve the referenced crate and function. Macro expansion and name resolution are interrelated processes, rather than two completely independent passes. ### Stage 3: HIR and type checking After the earlier front-end work, the compiler lowers source constructs into its High-level Intermediate Representation, or HIR. HIR provides a representation suitable for semantic analysis. One particularly important activity is type checking. The compiler verifies that expressions, function calls, and other constructs satisfy the language’s type rules. Consider: ```rust let count: u32 = "hello"; ``` This is invalid because the value doesn’t match the declared type. Rust identifies the problem during compilation rather than allowing the program to execute. This is only one example of the analysis performed by the compiler. Rust also checks many other language constraints, including trait requirements and coherence rules. ### Stage 4: MIR and borrow checking The compiler eventually produces another representation called Mid-level Intermediate Representation, or MIR. MIR represents program control flow and operations in a form that is easier for several compiler analyses to work with. It is particularly important for borrow checking. Consider: ```rust fn main() { let value = String::from("Hello"); let reference = &value; drop(value); println!("{reference}"); } ``` This program attempts to use a reference after the value it refers to has been destroyed. Rust’s borrow checker rejects the program. MIR provides a foundation for the dataflow analysis needed to enforce borrowing and lifetime constraints. It is also used for other analyses and optimizations. This is one of the reasons Rust can provide strong memory-safety guarantees without requiring a garbage collector for ordinary safe Rust code. ### Stage 5: Monomorphization Rust supports generics. For example: ```rust fn identity(value: T) -> T { value } ``` A program might use this function with multiple concrete types. During code generation, `rustc` identifies the concrete instances of generic code required by the program. This process is called monomorphization. It allows Rust to produce specialized machine code for concrete type combinations. That can provide excellent runtime performance. But it can also increase compilation work and the amount of generated code. We’ll return to monomorphization when investigating why some Rust builds take considerably longer than others. ### Stage 6: Code generation After the relevant analysis, `rustc` can generate machine code. For normal builds, Rust commonly uses LLVM as its code-generation backend. The compiler lowers the necessary representations into LLVM IR, where LLVM performs additional transformations and optimizations before producing machine-code objects. This is a significant part of the work performed during compilation. The amount of code generated and the selected optimization settings can strongly influence compilation time. For example, development and release builds generally use different optimization settings. A release build may therefore perform substantially more optimization work than a typical development build. ### Stage 7: Linking Finally, producing an executable may require linking together object files and compiled libraries. The linker resolves symbols and combines the required components into the final executable. Depending on the platform and toolchain configuration, this work may be performed by an external linker invoked by `rustc`. Not every compiler invocation performs a final executable link, and the precise outputs depend on the requested crate type. For our application, however, linking is part of producing the runnable program. ### Putting the compiler stages together We can summarize the major representations and activities:
  1. Rust source code
  2. Parsing and AST
  3. Macro expansion and resolution
  4. HIR and type checking
  5. THIR and MIR
  6. Borrow checking and MIR optimization
  7. Monomorphization and code generation
  8. LLVM IR
  9. Machine-code objects
  10. Linking
  11. Executable or library artifact
A conceptual overview of the compiler’s representations and activities.
This is a conceptual overview, not an exact execution trace. The [Rust Compiler Development Guide](https://rustc-dev-guide.rust-lang.org/overview.html) provides a much more detailed explanation of the compiler’s architecture. ### An important nuance: `rustc` isn’t just a linear pipeline We’ve presented compilation as a series of stages because that’s a useful way to understand it. But internally, `rustc` uses a more sophisticated architecture. Many compiler operations are implemented using a query system. A query computes some piece of information about the program. For example, the compiler might ask for the type of an item or the optimized MIR representation of a function. Queries can depend on other queries. Rustc tracks these dependencies and caches many query results. This architecture is particularly important for incremental compilation. Rather than always recomputing every compiler result from scratch, `rustc` can sometimes reuse previous results when the relevant inputs haven’t changed. However, not every compiler operation is independently query-driven, and not every query result is persisted between compiler invocations. The distinction matters: incremental compilation isn’t a guarantee that arbitrary unchanged portions of a program can always be reused. The [Rust Compiler Development Guide](https://rustc-dev-guide.rust-lang.org/query.html) explains the query system and its relationship to incremental compilation. This is another topic we’ll explore in depth later. For now, remember that Cargo’s crate-level freshness decisions and `rustc`’s internal incremental computation are two different mechanisms operating at different levels.
## 8. Why are check, build, Clippy, and test different? We now have enough background to answer a question from our introductory article. Why do the familiar Cargo commands perform different amounts of work? The answer comes down to what each command needs to produce. ### `cargo check` When we run: ```bash cargo check --workspace ``` Cargo arranges for `rustc` to analyze the selected crates without performing their normal final code-generation and linking work. The compiler still needs to perform substantial analysis. It must parse source code, expand macros, resolve names, check types, and enforce important language rules. It also produces metadata that downstream crate checks can consume. Because normal machine-code generation is generally avoided, checking can be significantly faster than a full build. However, as we’ve seen, build scripts and procedural macros may still need executable compilation. And because code generation and linking are skipped for checked crates, some errors cannot be detected by `cargo check` alone. ### `cargo build` When we run: ```bash cargo build --workspace ``` Cargo requests the compiled artifacts needed for a normal build. Rustc performs the required analysis, code generation, and linking. This may require additional compilation work even if we’ve already run `cargo check`. The output from a check-only compilation isn’t generally a substitute for the linked library or executable artifacts required by a build. That explains why running `cargo check` before `cargo build` doesn’t necessarily make the build free. ### `cargo clippy` Clippy is closely integrated with Rust’s compiler infrastructure. When we run: ```bash cargo clippy --workspace --all-targets ``` Cargo coordinates checking the selected targets with Clippy’s additional lint analysis. Clippy uses compiler information to identify suspicious patterns and opportunities for improvement. Much of its work resembles the analysis involved in `cargo check`, but the invocation and analysis requirements are not identical. We should not assume that all work performed by one command can automatically be reused by another. ### `cargo test` Testing introduces another layer of complexity. When we run: ```bash cargo test --workspace ``` Cargo needs to build and execute the selected tests. Rust’s test harness allows functions marked with `#[test]` to be discovered and executed automatically. To do that, `rustc` may compile crates in a special test configuration. In addition, integration tests are separate compilation targets. Our example therefore contains multiple forms of testing. The unit test inside `ci-core` is compiled as part of the library’s test configuration. The integration test inside `ci-app` becomes a separate test executable. And the documentation test in our library is handled through `rustdoc`’s documentation-testing mechanism. The [official Cargo documentation](https://doc.rust-lang.org/cargo/commands/cargo-test.html) explains how these targets are compiled and executed. ### Comparing the commands | Command | Principal work | Normal final code generation? | Executes tests? | | -------------- | -------------------------------------- | ------------------------------- | --------------- | | `cargo check` | Compiler analysis and metadata | Generally no for checked crates | No | | `cargo clippy` | Compiler analysis and additional lints | Generally no for checked crates | No | | `cargo build` | Compilation and artifact production | Yes, as needed | No | | `cargo test` | Compilation of test targets | Yes, as needed | Yes | This table describes the normal behaviour of the commands, not every compilation job they may trigger. Build scripts, procedural macros, target selection, and other configuration details can introduce exceptions. ### An important consequence for CI Now consider the pipeline from Article 1: ```bash cargo check --workspace cargo clippy --workspace --all-targets cargo test --workspace cargo build --workspace ``` These commands don’t represent four entirely independent tasks. They involve overlapping dependencies, source files, compiler analyses, and compilation configurations. Cargo and `rustc` can reuse some work across invocations, provided the existing artifacts and compilation settings are compatible. But not all work is interchangeable. A check-only artifact isn’t the same thing as a fully compiled library. A unit-test compilation can differ from a normal library compilation. Different feature configurations or compilation targets can require additional work. This means the order and configuration of CI commands can influence how much compilation work is repeated. We’ll examine those trade-offs in a later performance article. ## 9. What happens when we run CI again? Let’s return to our example workspace. Imagine we’ve successfully completed: ```bash cargo test --workspace ``` All tests pass. Now we make a small change. ### Scenario A: We change the application Suppose we modify: ```rust fn main() { println!("{}", ci_core::greet("Ferris")); } ``` We’ve changed our application, but not the underlying library. Cargo can normally reuse compatible, fresh library artifacts. It only needs to rebuild the compilation units affected by the change. This is the kind of situation where incremental development can be particularly efficient. ### Scenario B: We change the library Now imagine we modify the implementation of greet. Because the application depends on the library, the change can affect downstream compilation units. Cargo must determine which units remain fresh and which require rebuilding. Even a change that leaves the public function signature untouched may still lead to downstream recompilation. Why? Because Cargo’s freshness mechanism isn’t a general-purpose semantic-equivalence checker. It doesn’t automatically prove that every downstream use of a dependency remains unaffected by an implementation change. ### Scenario C: We change compilation settings Finally, suppose we change the compiler version, enable a different feature, or select a different compilation profile. These changes can alter the compilation units and their expected outputs. As a result, artifacts produced under one configuration may not be reusable under another. This is particularly relevant in CI environments, where toolchains and configuration can vary between jobs. ### What about `rustc`’s incremental compilation? Even when Cargo determines that a compilation unit needs rebuilding, `rustc` may be able to reuse some previously computed compiler results. That depends on whether incremental compilation is enabled and whether the stored results remain valid and available. This gives us two distinct opportunities for reuse: Cargo-level reuse: Avoid invoking the compiler for an already-fresh unit. `rustc`-level reuse: When compilation is required, avoid recomputing some compiler results. The distinction is central to understanding how Rust builds can be accelerated.
## 10. Investigating your own Rust CI pipeline Everything we’ve discussed so far can be explored using Cargo’s built-in tools. Here are a few useful experiments. ### Experiment 1: Inspect dependencies ```bash cargo tree cargo tree -e features ``` Observe the dependency relationships and enabled features. ### Experiment 2: Inspect compiler invocations From a disposable copy of the example workspace, run: ```bash cargo clean cargo check --workspace -vv ``` The `cargo clean` command removes the workspace’s existing build artifacts, giving us a fresh starting point. The verbose output makes it easier to observe the compiler work Cargo performs. Run the check again: ```bash cargo check --workspace -vv ``` Compare the two invocations. Which compilation units were rebuilt? Which were considered fresh? ### Experiment 3: Compare check and build Now run: ```bash cargo build --workspace -vv ``` Notice that the build may require additional compiler invocations even though the workspace has already been checked. That follows from the different output requirements. ### Experiment 4: Inspect test compilation Run: ```bash cargo test --workspace --no-run -vv ``` The `--no-run` option compiles test targets without executing the ordinary test binaries. Compare the compiler jobs with those observed during the normal build. Then execute the tests: ```bash cargo test --workspace ``` This also exercises the documentation test in our library. ### Experiment 5: Inspect compilation timings Cargo includes a useful timing-reporting feature: ```bash cargo build --workspace --timings ``` This generates a report showing compilation durations and concurrency. For larger projects, it can reveal which crates take the longest to compile and where dependency ordering limits parallel execution. Cargo documents this functionality as part of its [build commands](https://doc.rust-lang.org/cargo/commands/cargo-build.html#compilation-options). Try running it on one of your own Rust projects. The results may be considerably more interesting than those from our tiny example. ## 11. Putting everything together We’ve now followed a Rust CI job through its major stages. Let’s reconstruct the whole process. First, the CI system prepares an execution environment and invokes Cargo. Cargo reads the workspace configuration, resolves dependencies and features, and determines which compilation units are required. It checks the freshness of those units to determine which work can be reused. For units that require compilation, Cargo schedules jobs according to their dependencies. Rustc then performs the relevant compiler analysis and, when necessary, code generation. Some crates may also require build-time execution through procedural macros and build scripts. When tests are requested, Cargo builds the necessary test targets and executes the selected tests. Finally, Cargo reports the outcome to the CI system.
  1. CI runner
  2. Cargo: Project resolution
  3. Cargo: Compilation-unit graph
  4. Cargo: Freshness checks

Unit fresh?

Yes

Reuse existing artifacts.

No
  1. Schedule compilation
  2. rustc: Analysis
  3. rustc: Code generation, when required
  1. Artifacts / Test binaries
  2. Execute tests, when requested
  3. CI results
Fresh units reuse existing artifacts. Other units produce them through compilation before results return to CI.
This diagram is conceptual. In practice, Cargo can schedule multiple compilation units concurrently, and different commands require different outputs. There’s one final point worth emphasizing. Rust CI performance depends on considerably more than how quickly `rustc` can compile a single source file. It depends on the structure of the compilation graph, the work required by each unit, the availability of previous outputs, the compilation configuration, and the opportunities for parallelism. And many of those factors interact. That leads us directly to the next question. ## Next: Why is Rust CI so slow? We’ve seen that Cargo and `rustc` already contain sophisticated mechanisms for avoiding unnecessary work. Cargo tracks compilation-unit freshness. Rustc supports incremental compilation. Cargo schedules independent compilation work concurrently. And commands such as `cargo check` deliberately avoid some of the most expensive stages of ordinary compilation. So why can Rust CI still be slow? Why can a cold build take dramatically longer than a warm build? Why can seemingly small changes trigger substantial recompilation? And why doesn’t caching eliminate these problems? In the next article, [Why is Rust CI so slow?](https://www.sorus.run/blog/rust-ci-from-first-principles/why-is-rust-ci-so-slow), we’ll investigate these questions through concrete measurements and examples. We’ll look at where compilation time goes, how dependency graphs constrain parallelism, and why achieving fast, reliable Rust CI is a more interesting engineering problem than simply adding more CPU cores. Rust CI from first principles is an educational series by Sorus, exploring Rust compilation, testing, continuous integration, and developer productivity. ## Further reading - [Cargo’s compilation model](https://doc.rust-lang.org/cargo/guide/build-cache.html) - [Cargo metadata](https://doc.rust-lang.org/cargo/commands/cargo-metadata.html) - [Overview of the Rust compiler](https://rustc-dev-guide.rust-lang.org/overview.html) - [Incremental compilation in rustc](https://rustc-dev-guide.rust-lang.org/queries/incremental-compilation-in-detail.html) --- # Why is Rust CI so slow? > Understand compilation costs, critical paths and cache reuse, then measure the work behind your CI latency. Source: https://www.sorus.run/blog/rust-ci-from-first-principles/why-is-rust-ci-so-slow Reviewed: 2026-10-20 ## Introduction: The price of a clean build We love Rust. Its compiler catches entire classes of bugs before our programs run. Its type system and ownership model provide unusually strong guarantees, and tools like Clippy make it easier to maintain high-quality code. But anyone who has worked on a substantial Rust project will probably recognize another aspect of the development experience: sometimes, compilation takes longer than we’d like. This can be particularly frustrating in continuous integration. You change a handful of lines, push a commit, and open a pull request. Then you wait for your CI pipeline to finish checking, compiling, and testing the project. Perhaps your local machine completed a similar operation in seconds. Why does CI seem to be doing so much more work? And if Cargo already supports caching and incremental compilation, why can’t it simply reuse everything that hasn’t changed? These are surprisingly interesting questions. In our previous article, [What actually happens during Rust CI?](https://www.sorus.run/blog/rust-ci-from-first-principles/what-actually-happens-during-rust-ci), we followed a Rust project through Cargo’s dependency resolution, compilation scheduling, freshness checks, and `rustc`’s compilation pipeline. Now we’ll use that understanding to investigate performance. We’ll look at where Rust CI spends its time, why apparently small changes can trigger significant work, and why conventional caching doesn’t always solve the problem. We’ll also explore how to measure these costs rather than simply guessing where the bottlenecks are. The central insight is that Rust CI performance isn’t determined solely by how fast the Rust compiler is. It’s determined by how much work the entire system performs, how that work is scheduled, and how much of it must be repeated. ## 1. Where does Rust CI time actually go? When developers complain that Rust CI is slow, they’re often talking about the total time between pushing a commit and receiving a successful result. But that time includes much more than compilation. A typical CI job might involve:
  1. Start CI runner
  2. Checkout repository
  3. Prepare Rust toolchain
  4. Download dependencies
  5. Restore cached artifacts
  6. Compile required crates
  7. Link binaries and tests
  8. Execute tests
  9. Upload artifacts and report results
A typical CI job, from runner startup to a reported result.
Not every pipeline contains every stage, and some stages can overlap or run concurrently. Nevertheless, it’s useful to separate the time spent preparing the environment from the time spent actually compiling and testing Rust code. For example, imagine a CI job that spends a considerable amount of time restoring cached artifacts before Cargo even starts. Improving compilation speed won’t eliminate that overhead. Alternatively, suppose Cargo spends most of its time waiting for a particularly expensive dependency to compile. Making the CI runner start faster won’t solve that problem. This leads to our first principle: Before optimizing Rust CI, establish which part of the pipeline is actually slow. There are several distinct categories of overhead worth investigating. ## 2. Cold builds versus warm builds Let’s begin with one of the most important distinctions in Rust development. Consider running: ```bash cargo build --workspace ``` Now run the same command again. Assuming nothing relevant has changed, the second invocation will usually be much faster. Why? Because Cargo can reuse compatible artifacts produced by the first build. ### What is a cold build? A cold build is one in which the relevant compilation artifacts aren’t already available. Cargo must compile the dependencies and workspace crates needed for the requested command. For a substantial project, that might involve hundreds of compiler invocations. Some dependencies may themselves require build scripts, procedural macros, or native-code compilation. A cold build therefore represents a considerable amount of work. ### What is a warm build? A warm build starts with previously generated artifacts available. Cargo checks whether those artifacts remain valid for the requested compilation units. If they do, it can avoid repeating the corresponding compilation work. When everything is fresh, Cargo may have very little compilation to perform. ### Why this matters in CI The difference between cold and warm builds becomes especially important in cloud environments. For example, GitHub-hosted runners generally provide a fresh runner environment for each job. That means build artifacts aren’t automatically preserved between separate jobs or workflow runs. GitHub provides caching mechanisms to address this, but using them introduces additional considerations around what is stored, restored, and reused. Locally, your target directory may contain the accumulated results of many previous builds. In CI, those results must either be recreated or restored from somewhere. This creates an important distinction: A build can be fast because compilation itself is efficient, or because the necessary compilation has already happened. Those are different kinds of performance improvements. And they need to be measured separately. ## 3. Why compiling dependencies can be expensive Let’s return to the small workspace from our previous article. We had two crates: ```text ci-app └── ci-core ``` Our application depends on our library. On a cold build, Cargo must produce the required library output before compiling the application that depends on it. Now imagine we introduce several third-party libraries. A real dependency graph might contain dozens or hundreds of packages, many of which depend on other packages. Cargo needs to construct the necessary compilation units and schedule them according to their dependencies. ### Dependencies impose an order Suppose our application depends on crate D, and D depends on crates A and B. Meanwhile, the application also depends directly on crate C. The dependency relationships might look like this:
Crate dependencies and the compilation critical path Crates A and B feed crate D. Crate C and crate D feed the application. A, B and C may compile concurrently; D needs outputs from A and B. Crate A Crate B Crate C Crate D Application
Arrows run from each dependency to the crate that needs its output.
Cargo can potentially compile A, B, and C concurrently. But D cannot complete its compilation until the required outputs of A and B are available. And the application depends on D. This gives our compilation graph a critical path: a chain of dependent operations that constrains the minimum completion time. Even with unlimited CPU cores, Cargo cannot simply ignore those dependencies. ### Why more CPU cores aren’t always the answer Adding CPU cores can help when there are independent compilation jobs ready to execute. But once the build reaches a stage where a single dependency or compilation unit determines progress, additional cores may offer little benefit. The actual bottleneck might be one expensive crate, a linking step, or a build script. Memory also matters. Compilers can consume substantial amounts of memory, particularly when compiling large crates or performing intensive optimization. Allowing too many jobs to execute concurrently can create memory pressure, reduce performance, or even cause builds to fail. The right level of parallelism depends on the project and the available hardware. This is why simply increasing Cargo’s `--jobs` setting isn’t a universal solution. ## 4. Why small changes can trigger substantial recompilation Here’s one of the more surprising aspects of Rust compilation. Suppose our application depends on a library containing this function: ```rust pub fn calculate(value: u64) -> u64 { value * 2 } ``` We modify the implementation: ```rust pub fn calculate(value: u64) -> u64 { value + value } ``` The public function signature hasn’t changed. From the perspective of ordinary callers, both implementations produce the same mathematical result for `u64`, including wrapping behaviour in release configurations where overflow checks are disabled. Why might Cargo still need to recompile code that depends on this library? ### Cargo tracks compilation dependencies, not arbitrary semantic equivalence As we explored in Article 2, Cargo uses fingerprints, dependency information, and filesystem metadata to determine whether compilation units are fresh. When a dependency is rebuilt, Cargo generally treats downstream units that depend on its compilation output as requiring recompilation. This is deliberate. Cargo doesn’t attempt to prove that the new implementation is semantically equivalent to the previous one. Nor does it generally prove that every downstream compilation unit is unaffected by a dependency change. Instead, its freshness mechanism takes a conservative approach to deciding when previously generated artifacts can be reused. ### Why isn’t the public API enough? It’s tempting to assume that an unchanged public API should mean downstream compilation can always be skipped. But compilation dependencies are more complicated than function signatures. For example, Rust supports generic functions that may be monomorphized in downstream crates. Inlining can also expose upstream implementation details to downstream code generation. Constants, macros, and other forms of compile-time information can affect compilation even when an apparently unrelated function signature remains unchanged. Consequently, a simple comparison of public function signatures isn’t enough to determine whether every downstream compilation result remains valid. This doesn’t mean more precise reuse is theoretically impossible. It means that establishing safe reuse requires understanding exactly which information a compilation depends on. That’s a much more sophisticated problem than checking whether two versions of a library expose the same function names. We’ll explore this in detail in a future article about Cargo freshness and recompilation. For now, the important takeaway is: The amount of recompilation triggered by a change can be much larger than the amount of source code that changed. ## 5. Rust’s compiler performs substantial analysis So far, we’ve focused on deciding which crates need compilation. But what happens once `rustc` actually starts? Rust’s compiler is doing considerably more than translating source code into machine instructions. It must parse the program, expand macros, resolve names, check types, enforce ownership and borrowing rules, and perform other semantic analysis. For a normal build, it may also need to monomorphize generic code, perform optimization, generate machine code, and link the resulting artifacts. These operations provide much of the foundation for Rust’s safety guarantees and runtime performance. But they have computational costs. Let’s examine three particularly relevant areas. ### Type checking and borrow checking Rust performs sophisticated compile-time analysis. Its type checker verifies relationships between expressions, functions, traits, and other language constructs. Its borrow checker enforces ownership and borrowing constraints that help prevent memory-safety errors. The benefits are substantial. Many problems that might otherwise appear during execution are rejected during compilation. Importantly, however, this doesn’t mean type checking or borrow checking is necessarily the dominant cost of compiling a Rust project. The relative cost of different compiler stages depends on the source code, compilation settings, and requested output. To identify the real bottleneck, we need measurements. ### Monomorphization Rust generics enable reusable abstractions without necessarily introducing runtime dispatch. Consider: ```rust fn identity(value: T) -> T { value } ``` The compiler may generate specialized code for the concrete types used by the program. This process is called monomorphization. It can produce highly efficient executables, but it can also increase the amount of code that needs to be generated. Projects that make extensive use of generics may therefore create significant code-generation workloads. That doesn’t mean generics are inherently bad for compilation performance. Their impact depends on how they’re used and how much specialization is required. ### Optimization and linking Code generation is another potentially substantial source of compilation time. Rust commonly uses LLVM to optimize and generate machine code. Higher optimization levels can require additional work. Linking can also be expensive, particularly for large binaries. Consider a release build: ```bash cargo build --release ``` This command can take considerably longer than an ordinary development build. The default release profile uses stronger optimization settings than the development profile. It also disables incremental compilation by default, whereas the development profile enables it. The compiler isn’t simply doing the same work more slowly. It’s being asked to produce a different kind of artifact, with different optimization priorities. This illustrates a fundamental trade-off: Compilation speed and runtime performance are related, but they aren’t the same optimization objective. ## 6. Build scripts and procedural macros add another dimension Rust’s build process becomes even more interesting when we consider code that executes during compilation. Two important mechanisms are build scripts and procedural macros. ### Build scripts A Rust package can contain a `build.rs` file. Cargo compiles and executes that script before building the package. Build scripts can generate source code, inspect the build environment, compile native dependencies, or perform other preparation. Some build scripts are trivial. Others perform substantial work. Cargo supports directives such as: ```rust println!("cargo::rerun-if-changed=src/schema.proto"); ``` This allows a build script to declare a file whose changes should trigger the script to run again. Without suitable change-tracking directives, Cargo may take a broader approach to detecting changes that require rerunning the script. ### Procedural macros Procedural macros are even more tightly integrated with compilation. They generate Rust code during macro expansion. To execute a procedural macro, `rustc` needs a compiled version of the macro implementation. This means a project can require executable build-time components even when the requested Cargo command is `cargo check`. And procedural macros can themselves perform nontrivial computation. ### Why these mechanisms complicate caching Both mechanisms introduce additional inputs and dependencies. A build script might depend on files, environment variables, native libraries, or external tools. A procedural macro might generate different code depending on its input tokens or other information available during execution. For reuse to be reliable, the relevant inputs and outputs need to be accounted for. This is one reason build-time execution makes compilation caching more complicated. It’s also an interesting area for future research, particularly as more development workflows run in ephemeral cloud environments. ## 7. Why `cargo check`, Clippy, build, and test can repeat work Let’s return to the CI pipeline from our first article. It runs: ```bash cargo check --workspace cargo clippy --workspace --all-targets cargo test --workspace cargo build --workspace ``` At first glance, these appear to be four different checks. But they aren’t four completely independent workloads. All four commands interact with overlapping parts of the same compilation graph. ### Check versus build `cargo check` performs compiler analysis without normally generating final machine-code artifacts for the checked crates. `cargo build` needs those compiled artifacts. Consequently, a successful `cargo check` doesn’t mean that a subsequent `cargo build` has nothing left to do. Some artifacts may be reusable, but the two commands have different output requirements. ### Clippy versus check Clippy performs additional lint analysis using Rust’s compiler infrastructure. Much of the work resembles the analysis performed during `cargo check`. However, we shouldn’t assume that the results of the two commands are completely interchangeable. Their compilation units, flags, or analysis requirements may differ. ### Test versus build `cargo test` needs executable test targets. For unit tests, this can require compiling a crate with Rust’s test harness enabled. Integration tests are separate targets. Documentation tests introduce another execution path. As a result, some library code may need to be compiled in different configurations. The Cargo documentation explicitly notes that a library can be compiled both as a normal dependency and as a unit-test target. ### Does this mean we should remove checks? Not necessarily. Each command establishes different properties. Clippy provides analysis that a normal build doesn’t. Tests exercise runtime behaviour. A normal build can verify the production artifact that a check-only compilation doesn’t produce. The right question isn’t simply how many commands we can eliminate. It’s how to obtain the required confidence while minimizing unnecessary work. That requires understanding both the project’s verification requirements and Cargo’s compilation behaviour. For some projects, a separate `cargo check` step may provide little additional value once other checks are in place. For others, it may be an important fast-feedback stage. There isn’t a universally optimal command sequence. ## 8. Why caching doesn’t solve everything At this point, you might reasonably ask: If compilation is expensive, why don’t we simply cache the results? Caching is indeed one of the most important techniques for accelerating Rust builds. But there are several different things we might cache. ### Downloaded dependencies Cargo downloads dependency source code from registries and other configured sources. Caching those downloads avoids repeated network transfers. This is useful, but it doesn’t eliminate the need to compile the dependencies. ### Compiled artifacts Cargo stores compiled outputs and intermediate artifacts in its build directories. The default location is generally the workspace’s target directory. Reusing compatible compiled artifacts can avoid substantial compilation work. ### Incremental compiler state Rustc can also preserve information used by incremental compilation. When a crate needs recompilation, some previous compiler results may still be reusable. This operates at a different level from Cargo’s decision to skip a fresh compilation unit altogether. ### The compatibility problem A cached artifact is only useful when it’s compatible with the work we need to perform. Changes to the toolchain, compilation settings, selected features, dependencies, or target architecture can affect whether previously generated outputs remain valid. This is particularly important in CI, where different jobs may use different environments. ### The transfer problem Caching also has a cost. Artifacts need to be stored somewhere. In a cloud CI system, they may need to be compressed, uploaded, downloaded, and extracted. That introduces network traffic, disk I/O, and additional elapsed time. If restoring an artifact costs more than regenerating it, the cache has not improved performance. A useful optimization therefore needs to consider the entire process: How much work does a cache avoid, and how much does accessing that cache cost? This is why cache effectiveness should be measured, not assumed. ## 9. Understanding the limits of parallel compilation Another common optimization is to provide more powerful hardware. That can help enormously, especially for cold builds containing many independent dependencies. But hardware alone doesn’t eliminate every bottleneck. As we discussed earlier, Cargo’s compilation graph imposes dependencies between jobs. A crate that requires another crate’s output cannot complete before that dependency is available. This creates periods when some CPU cores may be idle even though compilation work remains. There may simply be no additional independent compilation units ready to execute. Conversely, a build with many independent jobs can sometimes saturate its available CPUs and memory. The optimal configuration depends on the shape of the graph and the resource demands of individual jobs. ### A practical way to investigate Cargo provides a timing-report feature: ```bash cargo build --workspace --timings ``` This generates an HTML report showing compilation-unit durations and concurrency over time. The report can help identify long-running compilation units and periods where the dependency graph limits available parallelism. It’s an excellent starting point for understanding a slow build. But it doesn’t tell the entire story. Cargo’s timings describe compilation activity, not every part of the CI workflow. They also don’t provide a complete breakdown of every operation performed internally by `rustc`. For that, more specialized measurements may be necessary. ## 10. Measuring Rust CI performance properly We’ve discussed a number of potential bottlenecks. Now let’s examine how to investigate them experimentally. The most important principle is to distinguish different build conditions. Measuring only one CI run tells us very little about why it took as long as it did. ### Experiment 1: Measure a cold build From the example workspace used in [Article 2](https://www.sorus.run/blog/rust-ci-from-first-principles/what-actually-happens-during-rust-ci), run: ```bash cargo clean time cargo build --workspace --locked --timings ``` This removes the workspace’s existing build artifacts before compiling. Save any timing reports you want to keep first: `cargo clean` also deletes reports under `target/`. The `--locked` examples require an up-to-date `Cargo.lock`; generate and commit it as described in Article 2. It leaves downloaded dependency sources in Cargo’s cache and does not clear a compiler cache such as sccache, so it isolates a different kind of cold start from a completely fresh CI environment. Record those cache states separately. Record the elapsed time and inspect the generated Cargo timing report. For our small example workspace, the results may not be particularly dramatic. For a larger Rust project, the report can be much more informative. ### Experiment 2: Measure an unchanged build Without modifying the source code, run: ```bash time cargo build --workspace --locked --timings ``` This gives us an indication of the overhead when Cargo can reuse existing outputs. Compare the results with the previous build. How much compilation work was avoided? How much time was spent checking freshness and performing other operations? ### Experiment 3: Change only the application Modify `crates/app/src/main.rs`. Then run: ```bash time cargo build --workspace --locked --timings ``` Inspect which compilation units Cargo rebuilt. The library should generally remain reusable if its relevant inputs and configuration haven’t changed. ### Experiment 4: Change the library Now restore the previous application change and modify `crates/core/src/lib.rs`. Run the build again. Compare which compilation units were rebuilt. This demonstrates how changes to a dependency can affect downstream compilation. ### Experiment 5: Compare different Cargo commands On a clean build directory, investigate: ```bash cargo check --workspace --locked --timings ``` Then: ```bash cargo build --workspace --locked --timings ``` Then: ```bash cargo test --workspace --locked --timings ``` Inspect the compilation jobs required by each command. Be careful when interpreting the results. Because the commands execute consecutively, later commands may benefit from artifacts generated by earlier commands. If we want to measure each command’s cold-start cost independently, we’ll need to reset the build artifacts between experiments. If we want to measure their behaviour as a pipeline, we should preserve those artifacts. Both experiments are useful, but they answer different questions. ### Record the environment For reproducible measurements, record the Rust toolchain version, operating system, architecture, available CPUs and memory, build profile, Cargo options, and cache state. Run experiments multiple times where practical, and compare distributions rather than treating a single result as definitive. This is particularly important when testing on shared cloud infrastructure. The same project can produce different timings because of environmental variation rather than a meaningful change in compilation efficiency. ### What should we measure? I’d separate the measurements into several categories. | Measurement | What it tells us | | ------------------------------------------ | ---------------------------------------------------- | | Total CI wall-clock time | How long developers wait for a result | | Environment preparation time | Overhead before Cargo starts | | Dependency download and cache restore time | Cost of obtaining reusable inputs | | Compilation wall-clock time | Time spent satisfying the build request | | Compilation-unit durations | Which units take the longest | | Build concurrency | How much work can proceed simultaneously | | Test execution time | Time spent running tests rather than compiling them | | Cache effectiveness | How much work was avoided relative to cache overhead | Together, these measurements provide a much more useful picture than a single number labelled build time. We should measure the system developers experience, while retaining enough detail to identify where improvements are possible. ## 11. What can we actually do to make Rust CI faster? We’ve now identified several sources of overhead. That suggests a number of possible improvements. At the simplest level, we can avoid running unnecessary commands, configure caching carefully, and use appropriate hardware. We can also examine how projects are structured. For example, reducing unnecessary dependencies may lower cold compilation costs. Separating large crates may create opportunities for more targeted recompilation, although it can also introduce additional compilation overhead. Build scripts can sometimes be made more precise about the inputs that trigger reruns. And CI workflows can be organized so that inexpensive checks provide feedback quickly, while more expensive verification continues as needed. These are established techniques worth understanding. But there are also more fundamental questions. Can we determine more precisely which compilation work is affected by a change? Can useful compiler artifacts be shared more effectively across different environments? Can we avoid repeating work across related CI jobs? And can we reduce the time between a developer or a coding agent making a change and receiving meaningful feedback? These questions point toward a broader objective. It’s not simply about making `rustc` execute faster. It’s about making the entire development feedback loop more efficient, while preserving the correctness guarantees and verification coverage that make Rust attractive. That’s an especially interesting problem as development increasingly moves into the cloud and coding agents generate and validate changes autonomously. ## 12. The future of fast Rust CI Rust provides an extraordinary set of tools for producing reliable, performant software. But the computational cost of those tools matters. As projects grow, CI systems can spend substantial time preparing environments, reconstructing compilation state, compiling dependencies, generating machine code, and executing tests. Some of that work is unavoidable. Some is a consequence of conservative dependency tracking or incompatible build configurations. And some may be repeated simply because useful results from previous work aren’t available where they’re needed. The opportunity is to understand those distinctions precisely. When we know which work is genuinely necessary, which work can be reused, and which work can execute concurrently, we can make much better decisions about how to design our CI systems. For us at Sorus, this is a fascinating area of engineering. We love Rust’s commitment to correctness and performance, and we believe developers should be able to benefit from those strengths without spending unnecessary time waiting for feedback. But meaningful improvement starts with understanding the system we’re trying to improve. And that brings us to the next articles in this series. ## Where to go next In How Does Cargo Know What Needs Recompiling?, we’ll examine Cargo’s fingerprints, dependency tracking, and freshness decisions in considerably greater detail. We’ll investigate when changes trigger downstream recompilation and why determining whether previous work can be safely reused is a subtle problem. Then, in Understanding Rust Build Caching, we’ll explore the different kinds of compilation artifacts, their compatibility requirements, and the challenges of reusing them across machines. Finally, How to Benchmark Rust CI Properly will develop the measurement techniques introduced here into a rigorous, reproducible methodology. Because the first step toward faster Rust CI isn’t guessing which optimization might help. It’s understanding exactly where the time goes and why. --- Rust CI from first principles is an educational series by Sorus, exploring Rust compilation, testing, continuous integration, and developer productivity. ## Further reading - [Cargo build timings](https://doc.rust-lang.org/cargo/reference/timings.html) - [Build-script input tracking](https://doc.rust-lang.org/cargo/reference/build-scripts.html#change-detection) - [Cargo build cache](https://doc.rust-lang.org/cargo/guide/build-cache.html) - [Sorus benchmark methodology](https://www.sorus.run/benchmarks/methodology) --- # Rust CI from first principles > Understand Rust CI from the commands you run to the compilation graph, caching and measurement. Source: https://www.sorus.run/blog/series/rust-ci-from-first-principles [All blog posts](https://www.sorus.run/blog) Start with a working CI pipeline, follow what Cargo and rustc do with it, then learn where the time goes. This series assumes you have used Cargo to build a Rust project. No experience running CI infrastructure is required. Each post builds on the previous one, and you can use the examples in your own workspace. [Start with part 1](https://www.sorus.run/blog/rust-ci-from-first-principles/rust-ci-cd-practical-introduction) ## In this series - Part 16 October 2026 ### [Rust CI/CD: a practical introduction](https://www.sorus.run/blog/rust-ci-from-first-principles/rust-ci-cd-practical-introduction) The Cargo commands, checks and GitHub Actions workflow that form a first Rust CI pipeline. - Part 213 October 2026 ### [What actually happens during Rust CI?](https://www.sorus.run/blog/rust-ci-from-first-principles/what-actually-happens-during-rust-ci) Follow Cargo and rustc through a workspace: compilation units, freshness, build scripts and the compiler. - Part 320 October 2026 ### [Why is Rust CI so slow?](https://www.sorus.run/blog/rust-ci-from-first-principles/why-is-rust-ci-so-slow) Understand compilation costs, critical paths and cache reuse, then measure the work behind your CI latency. --- # Product updates > Sorus client releases, documentation changes and benchmark updates. Source: https://www.sorus.run/changelog Client releases and changes to the documentation and benchmark library. ## Public client and documentation 21 October 2026 · Documentation update The docs now cover the public 0.3.0 client, released on 19 October. Install it with Homebrew or the release installer, sign in, and follow the [first-job tutorial](https://www.sorus.run/docs/quickstart). Updated guides cover GitHub Actions, nextest, Clippy, formatting checks, declared commands and the job environment. The reference pages have been refreshed from the matching client source and the current API catalogue. The [test services reference](https://www.sorus.run/docs/reference/services) lists the implemented PostgreSQL and Redis schema, defaults and limits. Declared services are not yet offered to customer jobs; the guides now state that availability restriction. The [documentation index](https://www.sorus.run/docs) separates tutorials, how-to guides, reference and explanation. To ask about the product or request a sales call, use the[contact form](https://www.sorus.run/contact). ## Benchmark library update 15 October 2026 · Evidence review The [benchmark summary](https://www.sorus.run/benchmarks) now covers nine repositories, with sixteen paired observations from 7–8 October and the failed rust-analyzer commands. Repository pages show each run, hardware, cache behavior and timing breakdown. Earlier records retain their original timing method. All results remain historical single-run observations. ## Customer documentation 6 October 2026 · Initial documentation Published guides for the Cargo workflow, source transfer and recovery, artifacts, credentials, and the CLI, API and MCP interfaces. See the[current version notes](https://www.sorus.run/docs/release-status) for client compatibility. --- # Contact Sorus > Ask about Sorus, discuss your Rust workloads or request a sales call with the team at Lorena Labs. Source: https://www.sorus.run/contact Ask about the product, discuss your Rust workloads or request a sales call with the Sorus team at Lorena Labs. ## Send a message Tell us what you'd like to know. If you're evaluating Sorus, include the repository or type of project and the builds or tests you want to run. To arrange a sales call, mention it in your message. We'll reply by email to find a time and discuss your requirements. Already a customer? Use the support contact agreed during onboarding. Email addressMessage We use your details to respond to this request. [Privacy information](https://www.sorus.run/privacy). --- # Pricing & usage > Read job usage records alongside your agreed pricing and billing terms. Source: https://www.sorus.run/docs/billing Reviewed: 2026-10-21 Pricing and included capacity are agreed in writing with **Lorena Labs Ltd**. The agreement defines charges, concurrency, usage limits, support, cancellation and any evaluation period. ## Usage records A job's elapsed time and its resource usage measure different things. `elapsed_seconds` records running duration, `vm_seconds` sums execution-unit running time through cleanup, and `vcpu_seconds` accounts for the allocated vCPUs over that time. Queueing and boot overhead are outside the running usage meter. For example, a job using more vCPUs can finish sooner while consuming more allocated resource time. A timing comparison alone therefore does not establish the customer's charge. ## Inspect usage Use the CLI to read or export usage for your account: ```sh cargo sorus usage report --json cargo sorus usage export --json ``` The [API reference](https://www.sorus.run/docs/reference/api) describes the response fields. Usage records describe execution; apply the prices and treatment of outcomes in your agreement when interpreting costs. ## Job outcomes A compiler or test failure still represents work performed. A platform failure or an interrupted client connection means something different. Keep the job's outcome and usage record together when investigating an unexpected charge; a disconnected client alone does not show that the job stopped. Repeated delivery of the same completion record does not create a second usage record. A deliberately submitted retry is a new job. The [results guide](https://www.sorus.run/docs/guides/results) explains how to inspect the original before retrying. ## Cost comparisons Public benchmark timings are not customer prices. A useful cost comparison needs the same workload, comparable resource and cache conditions, expected run volume and the agreed pricing. --- # Caching & reuse > Understand how dependency caches, compiler outputs and retained build state can reduce repeated work. Source: https://www.sorus.run/docs/concepts/reuse Reviewed: 2026-10-22 Rust builds reuse several kinds of data. Downloaded dependencies save a fetch, prebuilt dependencies and compiler outputs save repeated compilation, and a retained build directory can preserve work that Cargo considers fresh. These mechanisms have different compatibility rules, so a warm cache does not mean every part of a job can be skipped. ## Compatibility Compatibility is checked across `Cargo.lock`, the resolved Rust toolchain, the Cargo command and arguments, the declared environment, the working directory and the machine class (`4 vCPU`, `8 vCPU` or `16 vCPU`). A different compiler, lockfile or feature set can invalidate earlier outputs even when a crate version is unchanged. Sorus uses those inputs when selecting reusable state. Cargo still decides which units need rebuilding. A cache miss is an expected outcome: the job must perform the requested work when compatible state is unavailable. ## Reuse mechanisms ### Dependency locality and prebuilds The dependency gateway retains public crate and Git content near execution, verifies crates against their recorded checksums and serves locked Git commits. In addition, Sorus reads `Cargo.lock` and prebuilds external crates (`crates.io` packages and commit-pinned Git dependencies) in an isolated preparation job before your check, build or test runs. ### Compiler outputs The compiler cache can reuse compatible compilation outputs in a tenant's namespace across runs that share the same toolchain, dependency lockfile, flags and environment. Linked binaries, build-script execution and incremental compilation have different reuse behavior. Inspect the job's reported cache activity and applied configuration when evaluating it. A faster run alone does not establish a cache hit, and an explicit compiler setting can change which units are cacheable. ### Private warm build state Protected-branch and merge-queue CI runs can retain compatible workspace `target/` build state on the repository's trunk lineage. Subsequent pull requests, local `git worktree` runs and coding agents clone that prepared state into an isolated scratch volume and recompile only the crates affected by their changes, without downloading and unpacking the target directory on a runner. Prebuilt state also affects automatic sizing. When no explicit machine size is passed, Sorus selects `4 vCPU`, `8 vCPU` or `16 vCPU` from the workspace dependency graph and available prebuilt state. The job's `size_decision` records the actual decision. ### Workflow caches An `actions/cache` step belongs to the workflow and runner where it executes. Installing the Sorus client in GitHub Actions does not move that runner's filesystem or its cache into a managed Sorus job. The remote job receives the captured source and Sorus-managed state. ## Trust boundaries Customer-produced build state and compiler outputs remain tenant-private. Shared public dependency content does not grant access to another customer's artifacts or source. Reuse requires both compatible inputs and the authority to read the retained data. ## Measuring reuse Compare the same source, command, compiler and environment. Record which state was available and which mechanism reported a hit or miss. Cold runs and repeated warm runs answer different questions; report both when evaluating a workflow that encounters both. A missing measurement should remain unknown. Do not infer cache behavior from timing alone or use a selected cache hit to represent every run. The [benchmark method](https://www.sorus.run/benchmarks/methodology) describes a comparable measurement. --- # Explanation > Understand how Rust CI and Sorus work. Source: https://www.sorus.run/docs/explanation [All documentation](https://www.sorus.run/docs) Understand how Rust CI and Sorus work. - [How Sorus fits into a Rust workflow](https://www.sorus.run/docs/overview) See how source capture, cloud execution and job results fit into your Rust workflow. - [Rust CI basics](https://www.sorus.run/docs/learn/rust-ci) Learn what Cargo commands do, how CI runs them and where build caching helps. - [Caching & reuse](https://www.sorus.run/docs/concepts/reuse) Understand how dependency caches, compiler outputs and retained build state can reduce repeated work. - [Pricing & usage](https://www.sorus.run/docs/billing) Read job usage records alongside your agreed pricing and billing terms. - [Security boundaries](https://www.sorus.run/docs/guides/security) Understand how Sorus handles uploaded source, credentials, job isolation and retained data. --- # Connect a coding agent > Configure a coding agent to submit jobs and read results through the CLI, API or MCP. Source: https://www.sorus.run/docs/guides/agents Reviewed: 2026-10-21 You need an authorised repository and access to the agent host's secret settings. ## Start with the skill [Install the Sorus CI skill](https://www.sorus.run/docs/guides/install-skill) for Claude Code, Codex, Gemini CLI or Cursor. It gives the agent the submission and recovery procedure; the interfaces below give it a way to call Sorus. ## Interfaces Choose an interface the agent supports: ### CLI For an agent with shell tools, install the [public client](https://www.sorus.run/docs/sorus-ci#install) and add `--json` to commands for structured results. ### HTTP API Use the operations and schemas in the [API reference](https://www.sorus.run/docs/reference/api). ### MCP Use the separate `lathe-mcp` server if it has been supplied for your integration. It is not included in the public client package. The [machine-readable documentation index](https://www.sorus.run/llms.txt) links to individual Markdown pages, the full documentation text and API schemas. Keep the job procedure in the skill and look up exact commands in the reference when needed. ## Credentials Create a named credential for the agent using the [authentication guide](https://www.sorus.run/docs/guides/authentication#ci-and-agent-credentials). A caller that reads and submits jobs generally needs `read` and `submit`, not credential administration. For the CLI, inject `SORUS_TOKEN` through the host's secret mechanism, or select a credential file with `SORUS_CREDENTIAL_FILE`. Keep values out of prompts, checked-in configuration and transcripts. Verify the caller with `sorus whoami` before allowing submissions. Set the repository, task, concurrency and retry limits in the agent's instructions. A valid credential does not decide whether a particular new job is within the task you assigned. ## Transports The separate MCP server currently retains its executable and configuration names: `lathe-mcp`, `LATHE_TOKEN`, `LATHE_CREDENTIAL_FILE` and `LATHE_ENDPOINT`. Do not substitute the CLI's `SORUS_*` names in MCP configuration. ### Local · stdio For a client that starts a local server, configure `lathe-mcp` with `stdio` as its argument and supply the credential through the host's secret mechanism. ### Streamable HTTP Follow the [MCP transport reference](https://www.sorus.run/docs/reference/mcp#installation). A listener outside loopback also requires `LATHE_MCP_HTTP_TOKEN`, with at least 32 characters, and the matching bearer token on each request. Every operation still runs under the server's Sorus credential. ## Results and retries Store submission keys and job identifiers. Read structured refusal and exit fields instead of parsing sentences intended for a person. Have the agent distinguish a workload failure from a platform failure or an outcome it could not observe. After an interrupted request, inspect or resume the original job before submitting another. A submission key cannot be reused with changed inputs. Use the [job recovery guide](https://www.sorus.run/docs/guides/results) for retry behavior. --- # Read logs and download artifacts > Read completed job logs, select build outputs and download verified files. Source: https://www.sorus.run/docs/guides/artifacts Reviewed: 2026-10-21 You need access to the job and its identifier. ## Logs Read a completed job's output: ```sh cargo sorus logs ``` Replace `` with the job identifier. While the job runs, use `cargo sorus status ` to follow progress. The [results guide](https://www.sorus.run/docs/guides/results) covers raw output, structured test results and nextest JUnit reports. ## Artifact selection Add one `--artifact` for each repository-relative file. For a package whose binary is named `my-app`: ```sh cargo sorus build --release --locked --artifact target/release/my-app --artifact-dir ./sorus-output ``` Replace `my-app` with your binary's name. Adjust the path if your Cargo configuration or target changes the output directory. Only selected regular files are collected. Directories, symlinks and paths outside the workspace are refused. A selection may contain at most 64 distinct files, each no larger than 512 MiB, with a total of 2 GiB. The service does not run another build to create a missing output. `--artifact-dir` selects a local destination for the returned artifacts. Without it, the client uses its local artifact cache and reports the destination. Check the reported files before using them in a release. ## Download artifacts List the available files: ```sh cargo sorus artifacts ``` Use the returned attempt and index to download a file: ```sh cargo sorus artifacts ``` Replace every angle-bracket placeholder with the listed value or your chosen destination. Retrieval verifies the data and refuses to overwrite an existing file. To reconnect and retrieve the original selection into a specified directory: ```sh cargo sorus status --artifact-dir ./sorus-output ``` An interrupted download can be retried without rerunning the workload. Preserve the job identifier and check whether any destination files already exist. ## Retention Artifacts are retrievable for **24 hours from original job admission**, including execution time. Copy files you need to retain into your own durable storage before that window ends. Artifact expiry is separate from source and log retention. Check those terms in your agreement when designing a release or audit workflow. --- # Authenticate the CLI > Sign in or create a scoped credential for CI and coding agents. Source: https://www.sorus.run/docs/guides/authentication Reviewed: 2026-10-21 You need the [public client](https://www.sorus.run/docs/sorus-ci#install) and access to the intended repository. ## Sign in Run: ```sh sorus login ``` Open the printed approval page, sign in and approve the matching device code. Then check your identity and repository setup: ```sh sorus whoami sorus onboarding status ``` The client stores the login in `$XDG_CONFIG_HOME/lathe/credentials.json`, or `$HOME/.config/lathe/credentials.json` when `XDG_CONFIG_HOME` is unset. The directory retains the earlier product name for compatibility. ## CI and agent credentials From an identity allowed to manage credentials, create one for the caller: ```sh sorus credential create ci --scope read --scope submit --expires 30d --requests-per-minute 60 ``` This example allows reading and submitting work for 30 days with a limit of 60 requests per minute. Choose the scopes, expiry and rate limit appropriate for your automation. The value is printed once. Save it directly in the CI or agent host's secret store. Inject it as `SORUS_TOKEN` only into the process that calls Sorus. Do not put it in source control, prompts, logs or URLs, or pass it into the remote build as a job variable. Run `sorus whoami` with that credential to verify the identity before enabling submissions. [CI integration](https://www.sorus.run/docs/guides/ci) shows how to inject the secret into a workflow. ## Settings and credential files `SORUS_TOKEN` takes precedence over `SORUS_CREDENTIAL_FILE`. To use a file instead, leave `SORUS_TOKEN` unset and set `SORUS_CREDENTIAL_FILE` to a file containing the credential or a stored JSON credential document. `SORUS_ENDPOINT` selects the API origin; its default is `https://app.lathe.run`. Use another origin only when it has been supplied for your account. ## Scopes and attribution Grant the scopes the task needs. Reading and submitting jobs does not require permission to change settings or manage other credentials. The [API reference](https://www.sorus.run/docs/reference/api) states the authority required for each operation. Use named credentials for separate automated callers so their actions can be attributed and their access revoked independently. ## Rotate or revoke access List credentials without exposing their values: ```sh sorus credential list ``` To rotate a credential, create one under a new name, update the consumer's secret, verify the new identity, then revoke the previous name: ```sh sorus credential revoke ci ``` A revoked credential is refused on its next use. ## Authentication failures Exit `3` means a credential is missing, refused, expired, revoked or out of scope. Check the endpoint and selected identity. Unset an unintended `SORUS_TOKEN` if you meant to use a credential file. Repository authorisation is a separate requirement from a valid login. --- # Run Sorus from CI > Add a Sorus test job to GitHub Actions and report its result on the commit. Source: https://www.sorus.run/docs/guides/ci Reviewed: 2026-10-21 You need an authorised repository and permission to manage CI secrets. Complete the [first Cargo check](https://www.sorus.run/docs/quickstart) before connecting automation. ## Run a CI job Create a credential with `read` and `submit` scopes using the [authentication guide](https://www.sorus.run/docs/guides/authentication#ci-and-agent-credentials). Store its value as the Actions secret `SORUS_TOKEN`. The following workflow tests pushes to `main` and can also be started manually. Adjust the branch and Cargo arguments to match your existing check: ```yaml name: Rust tests on: push: branches: [main] workflow_dispatch: permissions: contents: read jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: sorus-run/setup-sorus@v0.3.0 with: version: 0.3.0 - name: Run workspace tests env: SORUS_TOKEN: ${{ secrets.SORUS_TOKEN }} run: cargo sorus test --workspace --locked --check-commit "$GITHUB_SHA" --check-name "lathe / tests" ``` The setup action installs the public client. No Rust compilation runs on the Actions runner: it captures the checkout, submits the job and waits for the result. Sorus reads the repository's Rust toolchain selection. Checkout, packaging and deployment stay in your existing workflow. In another CI system, install the same client with the [public installer](https://www.sorus.run/docs/sorus-ci#install), check out the repository and inject `SORUS_TOKEN` into the calling process. ## GitHub Actions and other CI systems Keep the same source, toolchain, features, profile and test arguments as the existing CI step. `--locked` uses the committed dependency resolution. Make an intentional comparison before changing those inputs or the test runner. Decide which pull requests may use your credential before adding a pull-request trigger. Fork code must not receive a privileged token. Do not switch to a privileged event solely to expose a secret to an untrusted checkout. ## Report a GitHub check `--check-commit ` publishes the result through the GitHub App installation connected to your Sorus account. It needs access to the repository and permission to write checks; the token used to submit the job does not replace that installation. The default check name is `lathe`. A custom name must use `lathe /