Skip to main content

import_profile

Want to know how much time and memory each of your Python imports costs?

Find out with import_profile!

Just do:

python3 -m import_profile flask sqlalchemy flask_sqlalchemy pandas numpy

And you will get:

flask sqlalchemy flask_sqlalchemy numpy pandas

                   time cpu.user cpu.system memory.uss memory.rss
flask              0.15     0.12       0.02       9.92      13.08
sqlalchemy         0.10     0.09       0.01       5.09       5.22
flask_sqlalchemy   0.07     0.07       0.00       3.45       3.43
numpy              0.12     0.12       0.09       7.52      12.31
pandas             0.35     0.28       0.06      17.78      25.10
*base*             0.00     0.05       0.02       5.96      11.61

time       = seconds of real time since the import trial began
cpu.user   = seconds of CPU time spent in this process
cpu.system = seconds of CPU time spent waiting for the OS kernel, such
             as waiting for file I/O to complete
memory.uss = unique set size - memory taken up by process, minus
             shared objects/DLLs (megabytes)
memory.rss = resident set size (megabytes)

Metadata

Release files for import-profile 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for import-profile 0.1.2
File Size Uploaded
import_profile-0.1.2.tar.gz 4.0 kB Details

Release files / import_profile-0.1.2.tar.gz

Download URL import_profile-0.1.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
500b00982d6a83449c49ce70e61f56dabd6e494cc3a27dfec2d9c5b16138ac34
BLAKE2b-256 checksum
How to use checksums
dd03e042b309a43af3b9c2e3ae2456a68e7c5b8abdcd4c531282f82a2b041d04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page