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

Question: Current Working Directory for iai benchmarks? #17

Open
llogiq opened this issue Jun 4, 2021 · 2 comments
Open

Question: Current Working Directory for iai benchmarks? #17

llogiq opened this issue Jun 4, 2021 · 2 comments

Comments

@llogiq
Copy link

llogiq commented Jun 4, 2021

Hi there! I have an operation I want to benchmark which accesses a directory within the environment. What is the current working directory the benchmarks are run in?

Also I seem to get errors on running my benchmark code (presumably while trying to write to stdout) – is there a way to get backtraces on panic from the benchmarked code?

@llogiq
Copy link
Author

llogiq commented Jun 4, 2021

So by experimentation I found out that the current working directory is the target path of the crate. I got visibility into the error by copying the code into an example and running that directly.

@llogiq llogiq closed this as completed Jun 4, 2021
@bheisler
Copy link
Owner

bheisler commented Jul 7, 2021

I'm going to reopen this as a note to myself to figure out what the CWD should be and document that.

@bheisler bheisler reopened this Jul 7, 2021
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

No branches or pull requests

2 participants