Skip to content

Commit 094377a

Browse files
committed
Add cargo-0.60.0 as a new benchmark.
I obtained the code with: ``` target/release/collector download -c primary crate cargo 0.60.0 ``` `cargo-0.60.0/perf-config.json` and `cargo-0.60.0/0-println.patch` are based on the corresponding files in `cargo/`. `cargo-0.60.0` is quite a bit slower to compile than `cargo`. Times for `full` builds of the final crate on my machine: ``` cargo cargo-0.60.0 cargo check 4.26 6.92 cargo debug 10.13 19.72 cargo opt 17.59 35.67 ``` And to run the entire benchmark (including compiling all crates): ``` cargo: Check real 18.46 user 84.04 sys 18.01 cargo-0.60.0: Check real 18.16 user 100.21 sys 13.45 cargo: Debug real 25.98 user 163.99 sys 21.99 cargo-0.60.0: Debug real 32.92 user 205.82 sys 18.37 cargo: Opt real 38.28 user 450.19 sys 20.37 cargo-0.60.0: Opt real 55.54 user 585.34 sys 19.06 ``` `cargo` will be removed soon.
1 parent bc1f2fc commit 094377a

File tree

560 files changed

+205382
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

560 files changed

+205382
-0
lines changed

collector/benchmarks/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ They mostly consist of real-world crates.
1616

1717
- **cargo**: The Rust package manager. An important program in the Rust
1818
ecosystem.
19+
- **cargo-0.60.0**: The Rust package manager. A large program, and an important
20+
one in the Rust ecosystem.
1921
- **clap-rs**: A command line argument parser. A crate used by many Rust
2022
programs.
2123
- **cranelift-codegen**: The largest crate from a code generator. Used by
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/cargo/sources/path.rs b/src/cargo/sources/path.rs
2+
index cc1c9874..4abbd75e 100644
3+
--- a/src/cargo/sources/path.rs
4+
+++ b/src/cargo/sources/path.rs
5+
@@ -54,6 +54,7 @@ impl<'cfg> PathSource<'cfg> {
6+
}
7+
8+
pub fn preload_with(&mut self, pkg: Package) {
9+
+ println!("testing");
10+
assert!(!self.updated);
11+
assert!(!self.recursive);
12+
assert!(self.packages.is_empty());

collector/benchmarks/cargo-0.60.0/CHANGELOG.md

Lines changed: 2411 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Contributing to Cargo
2+
3+
Contributing documentation has moved to the **[Cargo Contributor Guide]**.
4+
5+
[Cargo Contributor Guide]: https://rust-lang.github.io/cargo/contrib/

0 commit comments

Comments
 (0)