-
Notifications
You must be signed in to change notification settings - Fork 127
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
ci: Run benchmarks with Ethernet and max MTUs #2183
Changes from all commits
025e604
76cd77e
b40b73c
d1be7d4
f548144
137fce9
3f3208c
1398f12
999aba4
0f4b578
d9b0464
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
larseggert marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ const ZERO: Duration = Duration::from_millis(0); | |
const JITTER: Duration = Duration::from_millis(10); | ||
const TRANSFER_AMOUNT: usize = 1 << 22; // 4Mbyte | ||
|
||
fn benchmark_transfer(c: &mut Criterion, label: &str, seed: &Option<impl AsRef<str>>) { | ||
fn benchmark_transfer(c: &mut Criterion, label: &str, seed: Option<&impl AsRef<str>>) { | ||
for pacing in [false, true] { | ||
let mut group = c.benchmark_group(format!("transfer/pacing-{pacing}")); | ||
// Don't let criterion calculate throughput, as that's based on wall-clock time, not | ||
|
@@ -63,14 +63,18 @@ fn benchmark_transfer(c: &mut Criterion, label: &str, seed: &Option<impl AsRef<s | |
} | ||
|
||
fn benchmark_transfer_variable(c: &mut Criterion) { | ||
benchmark_transfer(c, "varying-seeds", &std::env::var("SIMULATION_SEED").ok()); | ||
benchmark_transfer( | ||
c, | ||
"varying-seeds", | ||
std::env::var("SIMULATION_SEED").ok().as_ref(), | ||
); | ||
} | ||
|
||
fn benchmark_transfer_fixed(c: &mut Criterion) { | ||
benchmark_transfer( | ||
c, | ||
"same-seed", | ||
&Some("62df6933ba1f543cece01db8f27fb2025529b27f93df39e19f006e1db3b8c843"), | ||
Some(&"62df6933ba1f543cece01db8f27fb2025529b27f93df39e19f006e1db3b8c843"), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So you are passing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clippy wants it |
||
); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this giant thing not a shell script?