Тестирование производительности кода
Project description
Что это ?
Проект для профилирования кода
Описание модулей
time_dec - Замерить Время
Пример работы
import random
from time_dec import time_s
@time_s(3)
def test():
a = []
for i in range(7000):
a.append(random.randint(0, 9))
n = 100
a = []
test()
-
time_s(count_loop)
= Замерить время выполнения в секундахcount_loop
= Количество повторений функции
-
time_ns(count_loop)
= Замерить время выполнения в наносекундахcount_loop
= Количество повторений функции
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
dec_profiler-0.1.0.3.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file dec_profiler-0.1.0.3.tar.gz
.
File metadata
- Download URL: dec_profiler-0.1.0.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.7.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3581a2cdb5c1f69f254c88fe5d876c14952740d08450fb6ccfd1d1574b91c86e |
|
MD5 | 0d16163ba98f43f79694fdf3902dfa75 |
|
BLAKE2b-256 | 9e377aeed1317aae90ba72c1d48be4104d8c1320dfa206fcac083d7e56ca9932 |
File details
Details for the file dec_profiler-0.1.0.3-py3-none-any.whl
.
File metadata
- Download URL: dec_profiler-0.1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.7.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ce4946e4c3b09496a7c4288e06c6d1d0b9adef8d7aadc4609711eebf53e504d |
|
MD5 | f1d610143b5611ac32def50ed60679d3 |
|
BLAKE2b-256 | 4d665355b9a83d57e0e93fbe2ee0b700e09162c9c79ccf67804918a146358971 |