Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Add timing benchmark for import qiskit. #463

Merged
merged 4 commits into from
Aug 20, 2019

Conversation

kdk
Copy link
Member

@kdk kdk commented Aug 19, 2019

Adds a first benchmark to measure how long it takes to import top-level qiskit. This will include some overhead in starting up a new python interpreter, but that should be relatively consistent. ( numpy/numpy#8159 has some discussion over their approach, which is the same as is taken here.)

mtreinish
mtreinish previously approved these changes Aug 19, 2019
Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

LGTM, a nice simple benchmark and important to track. Especially because I've added several things that I know make the import slower (like the __qiskit_version__ pip checks). It does make me wish there was a good way to track the import time in an isolated venv (like what asv gives us) vs a full environment with all the elements installed so the namespace is larger.

@jaygambetta jaygambetta merged commit e75822c into Qiskit:master Aug 20, 2019
jakelishman pushed a commit to jakelishman/qiskit-terra that referenced this pull request Aug 1, 2023
)

* Add timing benchmark for `import qiskit`.

* Update import.py
jakelishman pushed a commit to jakelishman/qiskit-terra that referenced this pull request Aug 11, 2023
)

* Add timing benchmark for `import qiskit`.

* Update import.py
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants