-
Notifications
You must be signed in to change notification settings - Fork 65
ci: run benchmark command #9636
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
Conversation
8c45c2b to
e8bee92
Compare
105f5d2 to
ba16848
Compare
e8bee92 to
b08f3ba
Compare
ba16848 to
7e26aac
Compare
|
If Code quote: if let Some(local_dir) = input_dir {
let local_path = PathBuf::from(local_dir);
if !local_path.exists() {
panic!("Input directory does not exist: {}", local_dir);
} |
b08f3ba to
f388830
Compare
7e26aac to
c45a008
Compare
|
Benchmark movements: tree_computation_flow performance improved 😺 tree_computation_flow time: [13.345 ms 13.494 ms 13.660 ms] change: [-9.0732% -7.4423% -5.7610%] (p = 0.00 < 0.05) Performance has improved. Found 5 outliers among 100 measurements (5.00%) 2 (2.00%) high mild 3 (3.00%) high severe |
f388830 to
735532c
Compare
54b91d3 to
8ac0dc3
Compare
735532c to
5a4ffef
Compare
8ac0dc3 to
adfb97f
Compare
5a4ffef to
f0efaf3
Compare
adfb97f to
c7a4afa
Compare
25cb964 to
cc95451
Compare
c7a4afa to
9b55256
Compare
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: 0 of 11 files reviewed, 1 unresolved discussion (waiting on @avi-starkware and @meship-starkware)
bench_tools/src/runner.rs line 22 at r1 (raw file):
Previously, avi-starkware (Avi Cohen) wrote…
If
input_dirisSome, then it is never used. This function just checks that the directory exists, butrun_benchmarksdoesn't do anything with that directory other than that, and it is not copied intobench.input_dir.
you absolutly right, thanks
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: 1 of 11 files reviewed, 3 unresolved discussions (waiting on @avi-starkware and @meship-starkware)
Cargo.toml line 256 at r3 (raw file):
Previously, avi-starkware (Avi Cohen) wrote…
Note that adding new external dependencies is discouraged and requires special approval.
I can do something like that
, but fs extra is a popular crate and I prefer to use it.
I'll ask for permission
/// Recursively copies the contents of a directory to another directory.
fn copy_dir_contents(src: &Path, dst: &Path) -> std::io::Result<()> {
for entry in fs::read_dir(src)? {
let entry = entry?;
let src_path = entry.path();
let dst_path = dst.join(entry.file_name());
if src_path.is_dir() {
fs::create_dir_all(&dst_path)?;
copy_dir_contents(&src_path, &dst_path)?;
} else {
fs::copy(&src_path, &dst_path)?;
}
}
Ok(())
}
crates/bench_tools/src/runner.rs line 40 at r4 (raw file):
Previously, avi-starkware (Avi Cohen) wrote…
Three issues:
- This will panic if local_dir == benchmark_input_dir which is unexpected behavior.
- This recursive copy is blocking, so doesn't work well with your async runtime.
- Is the new external dependency necessary?
- Thanks, fixed
- We removed async
- We don't have to use it, but I think that we should.
crates/bench_tools/src/runner.rs line 67 at r4 (raw file):
Previously, avi-starkware (Avi Cohen) wrote…
why do you copy all files for each benchmark you run?
Why not just the files related to_bench?
Thanks,
fixed in #9742
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 5 of 6 files at r6, all commit messages.
Reviewable status: 6 of 11 files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware and @meship-starkware)
Cargo.toml line 256 at r3 (raw file):
Previously, AvivYossef-starkware wrote…
I can do something like that
, but fs extra is a popular crate and I prefer to use it.
I'll ask for permission/// Recursively copies the contents of a directory to another directory. fn copy_dir_contents(src: &Path, dst: &Path) -> std::io::Result<()> { for entry in fs::read_dir(src)? { let entry = entry?; let src_path = entry.path(); let dst_path = dst.join(entry.file_name()); if src_path.is_dir() { fs::create_dir_all(&dst_path)?; copy_dir_contents(&src_path, &dst_path)?; } else { fs::copy(&src_path, &dst_path)?; } } Ok(()) }
If you get approval, I won't block you from using it, but I don't think it is a good idea to introduce a new external dependency instead of adding this function. (Unless the external crate is somehow much more efficient, or has other benefits.)
Your call anyway - non-blocking
crates/bench_tools/src/runner.rs line 40 at r4 (raw file):
Previously, AvivYossef-starkware wrote…
- Thanks, fixed
- We removed async
- We don't have to use it, but I think that we should.
Why is 1 fixed?
You need to handle the AlreadyExists error to avoid panicking in this case
cb64224 to
3f06c1a
Compare
befb523 to
1286c9b
Compare
3f06c1a to
8ed8d4d
Compare
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: 2 of 12 files reviewed, 2 unresolved discussions (waiting on @avi-starkware and @meship-starkware)
Cargo.toml line 256 at r3 (raw file):
Previously, avi-starkware (Avi Cohen) wrote…
If you get approval, I won't block you from using it, but I don't think it is a good idea to introduce a new external dependency instead of adding this function. (Unless the external crate is somehow much more efficient, or has other benefits.)
Your call anyway - non-blocking
I removed it
crates/bench_tools/src/runner.rs line 40 at r4 (raw file):
Previously, avi-starkware (Avi Cohen) wrote…
Why is 1 fixed?
You need to handle theAlreadyExistserror to avoid panicking in this case
I forgot to push.
but now the new func does nothing if its he same
85ee401 to
793f586
Compare
8ed8d4d to
a64e935
Compare
793f586 to
0a8a447
Compare
a64e935 to
36ec59a
Compare
36ec59a to
059833d
Compare
Merge activity
|
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 3 of 6 files at r7, 1 of 1 files at r8, all commit messages.
Reviewable status: 6 of 12 files reviewed, all discussions resolved (waiting on @meship-starkware)
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 4 of 11 files at r2.
Reviewable status: 10 of 12 files reviewed, all discussions resolved (waiting on @meship-starkware)
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 2 of 6 files at r7.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @meship-starkware)
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.