Skip to content
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

An attempt at supporting criterion benchmarks #229

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

simlay
Copy link
Contributor

@simlay simlay commented May 7, 2024

Possibly closes #81. I don't love this solution.

@@ -601,6 +606,8 @@ fn launch_app(dev: &AppleSimDevice, app_args: &[&str], _envs: &[&str]) -> Result
.lines()
.rev()
.find(|line| line.contains("exited with status"));
// This will fail if criterion didn't run.
let _ = copy_recursively(criterion_path, "./target/criterion");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty cool. I do wonder why the coping is only happening one way? It seems like we want to send the target/criterion directories contents to the device before running, then let it modify them, then copy them back to target/criterion.

Don't we need different criterion target directories per target or really per device? If I'm benchmarking 3 on 3 models of iPhones and 3 models of Apple Watches, I don't want those benchmark results to be mixed. Maybe I'm missing something though?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Benchmarking errors due to insufficient permissions for using Criterion
2 participants