Lightweight benchmarking decorator.
Project description
performer
Lightweight benchmarking decorator.
Installation
$ pip3 install performer
Usage
All benchmark results are output after the program ends.
The benchmark decorator does not affect the function output.
from performer import benchmark
@benchmark(1000)
def sum_range(n):
return sum(range(n))
@benchmark(100)
def hello():
return "Hello"
print(sum_range(100))
print(hello())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
performer-0.0.1.zip
(4.3 kB
view details)
File details
Details for the file performer-0.0.1.zip
.
File metadata
- Download URL: performer-0.0.1.zip
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | deeea81c320ed256dabb6e532b7d32a8bf5d285ff6931a98766227411cdac21d |
|
MD5 | 916e9ab126df40a910f803ca632eeff4 |
|
BLAKE2b-256 | df55357e05ab056bbf4933807f9abbe8751c410239035b6cbe8157161978aba2 |