Software for testing performance
Project description
performance_tester
Collection of modules for testing performance.
Installation
Command
pip install git+https://github.com/junnaka51/performance_tester.git
or add the following line in Pipfile if you use Pipenv
[dev-packages]
performance_tester = {git = "https://github.com/junnaka51/performance_tester.git"}
Examples
from performance_tester import measure_execution_time
@measure_execution_time(100)
def adder(a, b): # the function that you want to check the performance
c = a + b
return c
adder(1, 2)
Output:
100 loops:
mean: 3.573999492800795e-07 sec.
std : 1.1951605991912876e-07 sec.
max : 1.4500001270789653e-06 sec.
min : 3.199984348611906e-07 sec.
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
Built Distribution
Close
Hashes for performance_tester-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43f915c81fd5c21fd21a7210c411f23fc256d3611358dec0896863085cd8b5f0 |
|
MD5 | 8482f3eaffce930bd34730734aa0d16f |
|
BLAKE2b-256 | b5ec72f116de10e646b0b5c48b3cf3e101ecad55ac17386734ae3efc26585882 |