Skip to content

Commit 133a7e3

Browse files
committed
Add clap-3.1.6 as a new benchmark.
This is a little faster to compile than the old `clap-rs` benchmark. ``` clap-rs clap-3.1.6 check 3.17s 2.78s debug 4.44s 4.00s opt 5.79s 5.16s ``` `clap-rs` will be removed soon.
1 parent e2ec11a commit 133a7e3

File tree

120 files changed

+32858
-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.

120 files changed

+32858
-0
lines changed

collector/benchmarks/README.md

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

1818
- **cargo-0.60.0**: The Rust package manager. A large program, and an important
1919
one in the Rust ecosystem.
20+
- **clap-3.1.6**: A command line argument parser. A crate used by many Rust
21+
programs.
2022
- **clap-rs**: A command line argument parser. A crate used by many Rust
2123
programs.
2224
- **cranelift-codegen**: The largest crate from a code generator. Used by
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "e702f42e5ec416b477dfc8f71d8caef3a3dff923"
4+
},
5+
"path_in_vcs": ""
6+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/src/output/usage.rs b/src/output/usage.rs
2+
index 45cfa746..5e6431ce 100644
3+
--- a/src/output/usage.rs
4+
+++ b/src/output/usage.rs
5+
@@ -15,6 +15,7 @@ pub(crate) struct Usage<'help, 'cmd> {
6+
7+
impl<'help, 'cmd> Usage<'help, 'cmd> {
8+
pub(crate) fn new(cmd: &'cmd Command<'help>) -> Self {
9+
+ println!("testing!");
10+
Usage {
11+
cmd,
12+
required: None,
13+

0 commit comments

Comments
 (0)