Closed droumis closed 11 months ago
Hi @droumis!
Use asv run -q -e
, which will show print
statements that are in the benchmark code in the console. But you need to be careful with print
statements that are in the source code of your package as asv
checks out whatever branch is specified in the asv.conf.json
so you can't just add some extra print statements and re-run asv
, you need to check in the changes.
Alternatively, use asv run -q -e --python=same
which will run the benchmarks in your current environment rather than a new virtual environment, so if you have used pip install -e .
for your package you don't need to check in the changes.
Thanks @ianthomas23, looks like the issue was specific to print statements within a setup function, and that is working now, somewhat magically. Might have been a timing thing, as fixing a setup function such that it didn't return so quickly made it work. 🤷
I'm having a hard time debugging my benchmarks. I'm trying to have python print statements appear in the console but I have not been successful with any options (-e, -v). Part of the problem is that the benchmarks are not hitting an error, they just aren't doing what I expect in the context of the asv machinery.
How can I have print statements show up in the console? Thanks!