Skip to content

Commit 4b6d196

Browse files
authored
Merge pull request #1423 from rust-lang/lolperf
Add basic runtime benchmark infrastructure
2 parents 2b9051a + 12cb796 commit 4b6d196

File tree

12,179 files changed

+1037
-76
lines changed

Some content is hidden

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

12,179 files changed

+1037
-76
lines changed

Cargo.lock

Lines changed: 112 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
2-
members = ["collector", "site", "database", "intern"]
3-
exclude = ["collector/benchmarks", "rust/src"]
2+
members = ["collector", "collector/benchlib", "site", "database", "intern"]
3+
exclude = ["collector/compile-benchmarks", "collector/runtime-benchmarks", "rust/src"]
44

55
[profile.release.package.site]
66
debug = 1

collector/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ filetime = "0.2.14"
3333
walkdir = "2"
3434
flate2 = { version = "1.0.22", features = ["rust_backend"] }
3535
rayon = "1.5.2"
36+
cargo_metadata = "0.15.0"
37+
benchlib = { path = "benchlib" }
3638

3739
[target.'cfg(windows)'.dependencies]
3840
miow = "0.3"

collector/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Hardware and software details of the machine that executes the CI details can be
55

66
## The benchmarks
77

8-
The individual benchmarks are described in the `README` file in the
9-
`collector/benchmarks` directory.
8+
The individual compile time benchmarks are described in the `README` file in the
9+
`collector/compile-benchmarks` directory.
1010

1111
## How to build
1212

collector/benchlib/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "benchlib"
3+
version = "0.1.0"
4+
edition = "2021"
5+
description = "Library for defining and measuring benchmarks of Rust code"
6+
7+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8+
9+
[dependencies]
10+
anyhow = "1.0.61"
11+
serde = { version = "1.0.143", features = ["derive"] }
12+
serde_json = "1.0.83"
13+
log = "0.4.17"
14+
env_logger = "0.9.0"
15+
clap = { version = "3.2", features = ["derive"] }
16+
17+
[target.'cfg(unix)'.dependencies]
18+
perf-event = "0.4.7"

0 commit comments

Comments
 (0)