-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b5a92d
commit c390669
Showing
9 changed files
with
122 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: ":rotating_light: Performance regression in #{{ env.PR_NUMBER }}" | ||
labels: P-Performance, automated issue | ||
--- | ||
Regression >= 5% found during merge of: #{{ env.PR_NUMBER }} | ||
Commit: {{ env.GIT_SHA }} | ||
Triggered by: {{ env.WORKFLOW_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[table_comments] | ||
|
||
[top_comments] | ||
Overview = """ | ||
This benchmark report shows the Arecibo GPU benchmarks. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
use anyhow::anyhow; | ||
use criterion::BenchmarkId; | ||
|
||
// TODO: Why Copy and &'static str over String? | ||
#[derive(Clone, Debug, Copy)] | ||
pub(crate) struct BenchParams { | ||
pub step_size: usize, | ||
// TODO: Is this useful? | ||
//date: &'static str, | ||
pub sha: &'static str, | ||
} | ||
impl BenchParams { | ||
pub(crate) fn bench_id(&self, name: &str) -> BenchmarkId { | ||
let output_type = bench_parameters_env().unwrap_or("stdout".into()); | ||
match output_type.as_ref() { | ||
"pr-comment" => todo!(), | ||
"commit-comment" => BenchmarkId::new( | ||
format!("ref={}", self.sha), | ||
format!("{}-StepCircuitSize-{}", name, self.step_size), | ||
), | ||
// TODO: refine "gh-pages" and "stdout" | ||
_ => todo!(), | ||
} | ||
} | ||
} | ||
|
||
fn bench_parameters_env() -> anyhow::Result<String> { | ||
std::env::var("ARECIBO_BENCH_OUTPUT").map_err(|e| anyhow!("Bench output env var isn't set: {e}")) | ||
} | ||
|
||
pub(crate) fn noise_threshold_env() -> anyhow::Result<f64> { | ||
std::env::var("ARECIBO_BENCH_NOISE_THRESHOLD") | ||
.map_err(|e| anyhow!("Noise threshold env var isn't set: {e}")) | ||
.and_then(|nt| { | ||
nt.parse::<f64>() | ||
.map_err(|e| anyhow!("Failed to parse noise threshold: {e}")) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.