Skip to main content

Simple timeit decorator for benchmark functions

Project description

# timeitd
A timeit decorator which makes benchmark scripts easy

## Installation
$ pip install timeitd

## Example
from timeitd import timeit
from some_module import myfunction

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

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.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for timeitd, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size timeitd-1.0.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page