Simple Decorator to check the time took by a function to get executed.
Project description
Performance Monitor
Simple Decorator to represent the time took by a function execution.
Installation
Run the following to install:
pip install performance-monitor
Usage
from performance_monitor import *
@performance
def my_func():
for _ in range(1000000):
pass
my_func()
# Output
'''
:-: my_func --> 18.163681030273438 ms
'''
Options
| Unit | Decorator |
|---|---|
| millisecond (ms) | @performance |
| second (sec) | @performance_sec |
| minute (min) | @performance_min |
| hour (hr) | @performance_hr |
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
performance-monitor-0.0.1.tar.gz
(14.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file performance-monitor-0.0.1.tar.gz.
File metadata
- Download URL: performance-monitor-0.0.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
660372856324883d2864accd51610e75e1445a514edccbef057e704cbfd737cf
|
|
| MD5 |
d5fb0715adf014793a9014015e26582e
|
|
| BLAKE2b-256 |
12e900e2a2f8179e603264cbc4982acab98cfc959d2ee517b6f9635cec5c7273
|
File details
Details for the file performance_monitor-0.0.1-py3-none-any.whl.
File metadata
- Download URL: performance_monitor-0.0.1-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f9485265373aa7c42918ed5892cb6e755020c2029de00a1e9a9a85a25076af9
|
|
| MD5 |
2ebb3b2d08e16d003d01498bd1cf385f
|
|
| BLAKE2b-256 |
70f50e6b607ccb8e94aad8888f0843b6bb26dffe7267bd3d821ad8603b468ab6
|