-
Notifications
You must be signed in to change notification settings - Fork 65
bench_tools: add criterion benchmark names to benchmark config #9697
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
bench_tools: add criterion benchmark names to benchmark config #9697
Conversation
b9b7dff to
a7cbb4d
Compare
922dc28 to
405918b
Compare
a7cbb4d to
d43c70f
Compare
405918b to
2f2ab1c
Compare
d43c70f to
e3895bb
Compare
avi-starkware
left a comment
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.
@avi-starkware reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware)
crates/bench_tools/src/types/benchmark_config.rs line 13 at r1 (raw file):
/// If None, assumes a single benchmark with the same name as the config. /// Used for regression checking to know which criterion directories to check. pub criterion_benchmark_names: Option<&'static [&'static str]>,
I don't understand this new config
Code quote:
/// Optional list of Criterion benchmark names that this benchmark suite produces.
/// If None, assumes a single benchmark with the same name as the config.
/// Used for regression checking to know which criterion directories to check.
pub criterion_benchmark_names: Option<&'static [&'static str]>,8d9209a to
80a909b
Compare
618a391 to
0b8e2f7
Compare
80a909b to
0a6ad5b
Compare
0b8e2f7 to
a6d3b63
Compare
60d4519 to
72a806b
Compare
a6d3b63 to
3d11228
Compare
3d11228 to
de34bd8
Compare
9a7d354 to
b6817f7
Compare
de34bd8 to
1762d43
Compare
b6817f7 to
d0ebb5f
Compare
1762d43 to
39b0efd
Compare
d0ebb5f to
c0e50e1
Compare
39b0efd to
8e601c4
Compare
8e601c4 to
4084f6c
Compare
c0e50e1 to
92589ba
Compare
Merge activity
|
AvivYossef-starkware
left a comment
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avi-starkware and @meship-starkware)
crates/bench_tools/src/types/benchmark_config.rs line 13 at r1 (raw file):
Previously, avi-starkware (Avi Cohen) wrote…
I don't understand this new config
look here
BenchmarkConfig {
name: "dummy_benchmark",
package: "bench_tools",
cmd_args: &["bench", "-p", "bench_tools", "--bench", "dummy_bench"],
input_dir: Some("crates/bench_tools/data/dummy_bench_input"),
criterion_benchmark_names: Some(&[
"dummy_sum_100",
"dummy_sum_1000",
"dummy_process_small_input",
"dummy_process_large_input",
]),
},
when running cargo bench -p bench_tools --bench dummy_bench
4 benches are actually run.
It happens because of adding a bench function like that
c.bench_function("dummy_process_large_input", |b| {
b.iter(|| black_box(process_input(&large_input)))
});
avi-starkware
left a comment
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.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @meship-starkware)

No description provided.