Skip to main content
# timeitd
A timeit decorator which makes benchmark scripts easy

## Installation
```
$ pip install timeitd
```

## Example
```python
# bench_myfunction.py
from timeitd import timeit
from some_module import myfunction

@timeit(number=10000, unit="ns")
def bench_myfunction():
v = do_something()
myfunction(v)
```

Output of this benchmark script is:
```
bench_myfunction execution avg: 1100.312300004589 ns
```

Dependent on `timeit` module.
Time unit is available for ms, us and ns.

Metadata

Release files for timeitd 1.0

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

Source distribution (sdist)

Source distribution for timeitd 1.0
File Size Uploaded Provenance Actions
timeitd-1.0.tar.gz 2.0 kB Without provenance Details for timeitd-1.0.tar.gz

Release files / timeitd-1.0.tar.gz

Download URL timeitd-1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cd7afd69909a3fe0acb055dc16fb23299ddf1314bef3e5f8a842a6859fa516c1
BLAKE2b-256 checksum
How to use checksums
f3490ad509b8a44e880e129ac134ca8db3c285e81737f991c7c13717a26499cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for timeitd 1.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 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