Skip to content

Conversation

@simlay
Copy link
Contributor

@simlay simlay commented May 7, 2024

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

.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