Skip to main content

xyzt: compute and plot time cost scaling for functions with numpy array input

I often implement functions on atom positions in terms of Nx3 numpy arrays, and need to compare speed of different implementations. This small library is a thin wrapper over timeit for that purpose.

xyzt.timethem(functions_to_check, nmin=10, nmax=1e5, number=1e5) -> (n, times)
xyzt.plot(n, times, labels=None)
for fi in functions:
    for n in valid_range:
        generate random n-dimensional input vector
        timeit fi(v_rand)

example: scipy.spatial.distance.cdist+min versus scipy.spatial.cKDTree

Metadata

Release files for xyzt 0.0.1

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

Source distribution (sdist)

Source distribution for xyzt 0.0.1
File Size Uploaded Provenance
xyzt-0.0.1.tar.gz 2.5 kB Without provenance Details

Release files / xyzt-0.0.1.tar.gz

Download URL xyzt-0.0.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f5f494c1e3be9229567e49687956805b5e8ddfd663165407ec2de14bbed35d9f
BLAKE2b-256 checksum
How to use checksums
3e208a9ccf6c24fc2627ea66ee3fbe976cebb2dabd32553f376a4c2d7092f04f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.5.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Security for xyzt 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

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