Skip to content

Add basic runtime benchmark infrastructure #1423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
146 changes: 112 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
members = ["collector", "site", "database", "intern"]
exclude = ["collector/benchmarks", "rust/src"]
members = ["collector", "collector/benchlib", "site", "database", "intern"]
exclude = ["collector/compile-benchmarks", "collector/runtime-benchmarks", "rust/src"]

[profile.release.package.site]
debug = 1
2 changes: 2 additions & 0 deletions collector/Cargo.toml
Original file line number Diff line number Diff line change
@@ -33,6 +33,8 @@ filetime = "0.2.14"
walkdir = "2"
flate2 = { version = "1.0.22", features = ["rust_backend"] }
rayon = "1.5.2"
cargo_metadata = "0.15.0"
benchlib = { path = "benchlib" }

[target.'cfg(windows)'.dependencies]
miow = "0.3"
4 changes: 2 additions & 2 deletions collector/README.md
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@ Hardware and software details of the machine that executes the CI details can be

## The benchmarks

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

## How to build

18 changes: 18 additions & 0 deletions collector/benchlib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "benchlib"
version = "0.1.0"
edition = "2021"
description = "Library for defining and measuring benchmarks of Rust code"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.61"
serde = { version = "1.0.143", features = ["derive"] }
serde_json = "1.0.83"
log = "0.4.17"
env_logger = "0.9.0"
clap = { version = "3.2", features = ["derive"] }

[target.'cfg(unix)'.dependencies]
perf-event = "0.4.7"
Loading