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

3.5x slower "anaconda -V" between v1.11 and 1.13 #731

Open
dholth opened this issue Dec 16, 2024 · 1 comment
Open

3.5x slower "anaconda -V" between v1.11 and 1.13 #731

dholth opened this issue Dec 16, 2024 · 1 comment

Comments

@dholth
Copy link
Contributor

dholth commented Dec 16, 2024

The anaconda client is noticeably slower in 1.13.0 compared to 1.11.0

(conda-build) dholth@MacBookPro conda-pupa % time /Users/dholth/miniconda3/envs/conda/bin/anaconda -V
anaconda Command line client (version 1.11.0)
/Users/dholth/miniconda3/envs/conda/bin/anaconda -V  0.17s user 0.07s system 94% cpu 0.256 total
(conda) dholth@MacBookPro conda-pupa % time anaconda -V
anaconda Command line client (version 1.13.0)
anaconda -V  0.58s user 0.27s system 41% cpu 2.061 total

It looks like "import binstar_client" is slower in the new version.

python -c import time; begin = time.time(); import binstar_client; end = time.time() ; print(end-begin)

Shows .67 on the new version and .19 on the old version.

@mattkram
Copy link
Collaborator

I'm having trouble reproducing this. I am using hyperfine to run both a test script, which imports and prints the version, and the anaconda -V command. This is comparing v1.11.0 and v1.13.0 from the main channel. It is slightly hard to test, because 1.11.0 has a bug where it's raising an exception if not installed in the base environment (fixed by #667)

Here is the first example, which runs the following script:

import binstar_client

print(binstar_client.__version__)
Image

And here is the same thing, but running anaconda -V:

Image

To me, the differences seem pretty negligible. Am I overlooking something here?

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