Repository navigation
ci: cache rust dependencies in the macOS test job - #1673
Open
TomerStarkware wants to merge 1 commit into
Open
TomerStarkware wants to merge 1 commit into
TomerStarkware wants to merge 1 commit into
Conversation
The macOS job rebuilt every dependency from scratch on each run. Add the same Swatinem/rust-cache step the Linux test job already uses. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Benchmark results Main vs HEAD.Base
Head
Base
Head
Base
Head
Base
Head
Base
Head
Base
Head
|
Benchmarking resultsBenchmark for program
|
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
15.155 ± 0.155 | 14.961 | 15.449 | 7.52 ± 0.09 |
cairo-native (embedded AOT) |
2.015 ± 0.011 | 2.006 | 2.037 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2.031 ± 0.008 | 2.020 | 2.050 | 1.01 ± 0.01 |
Benchmark for program dict_snapshot
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
565.8 ± 5.9 | 555.8 | 573.7 | 1.00 |
cairo-native (embedded AOT) |
1686.7 ± 19.1 | 1664.2 | 1722.1 | 2.98 ± 0.05 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1718.7 ± 13.2 | 1687.6 | 1730.7 | 3.04 ± 0.04 |
Benchmark for program factorial_2M
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
7.142 ± 0.096 | 7.073 | 7.386 | 4.09 ± 0.06 |
cairo-native (embedded AOT) |
1.745 ± 0.011 | 1.727 | 1.767 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1.753 ± 0.008 | 1.741 | 1.765 | 1.00 ± 0.01 |
Benchmark for program fib_2M
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
7.082 ± 0.094 | 7.010 | 7.281 | 4.12 ± 0.09 |
cairo-native (embedded AOT) |
1.719 ± 0.029 | 1.685 | 1.766 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1.749 ± 0.019 | 1.717 | 1.776 | 1.02 ± 0.02 |
Benchmark for program linear_search
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
593.2 ± 1.9 | 590.2 | 595.4 | 1.00 |
cairo-native (embedded AOT) |
1696.9 ± 7.5 | 1684.7 | 1706.2 | 2.86 ± 0.02 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1739.3 ± 13.3 | 1723.6 | 1765.9 | 2.93 ± 0.02 |
Benchmark for program logistic_map
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
509.5 ± 1.4 | 507.5 | 512.9 | 1.00 |
cairo-native (embedded AOT) |
1676.7 ± 11.1 | 1659.3 | 1696.3 | 3.29 ± 0.02 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1703.9 ± 13.2 | 1686.3 | 1725.8 | 3.34 ± 0.03 |
orizi
approved these changes
Nov 10, 2026
orizi
left a comment
Collaborator
There was a problem hiding this comment.
@orizi reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on TomerStarkware).
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The macOS test job rebuilt every dependency from scratch on each run, making it the slowest job in CI (~64m). This adds the same pinned
Swatinem/rust-cachestep the Linux test job already uses, placed right after the toolchain install.Splitting
test-cairointo its own job is left for a follow-up so the cache win can be measured on its own first.🤖 Generated with Claude Code
This change is