# 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 `<checkout> -> 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)
