Skip to content

Commit b819126

Browse files
committed
Add helloworld-tiny benchmark
1 parent cb2639c commit b819126

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

collector/benchmarks/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ They mostly consist of real-world crates.
2727
trait bounds, by having a lot of trait impls for a large number of different
2828
types.
2929
- **helloworld**: A trivial program. Gives a lower bound on compile time.
30+
- **helloworld-tiny**: A trivial program optimized with flags that should reduce binary size.
31+
Gives a lower bound on compiled binary size.
3032
- **html5ever-0.26.0**: An HTML parser. Stresses macro parsing code.
3133
- **hyper-0.14.18**: A fairly large crate. Utilizes async/await, and used by
3234
many Rust programs. The crate uses cargo features to enable large portions of its

collector/benchmarks/helloworld-tiny/Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "helloworld-tiny"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
8+
[workspace]
9+
10+
[profile.release]
11+
opt-level = "z"
12+
lto = true
13+
codegen-units = 1
14+
panic = "abort"
15+
strip = true
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"category": "secondary",
3+
"excluded_profiles": ["Doc", "Check", "Debug"],
4+
"excluded_scenarios": ["IncrFull", "IncrPatched", "IncrUnchanged"]
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello world!");
3+
}

0 commit comments

Comments
 (0)