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-0.1.0.dev4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bba46399dedc69c3b967918627374066fc0f1eb6448de37f4a8fde5f6b9a430d |
|
MD5 | 60489e7c01764aa4605df6ef4d9c6d56 |
|
BLAKE2b-256 | 9ccc7e6efe9510e14b1d3bb1b7c2f8bee79b9f72615c0be9a85d7401d0f54cfb |
Close
Hashes for performance_tester-0.1.0.dev4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf8fda7682f231eacd146d912b8527bb188ff0d0f117f5fcb9c657836055a69d |
|
MD5 | 6df9ac830a7e60ffc3fc9f91d11bb186 |
|
BLAKE2b-256 | da8093cac2320db7c5ae0060835007674115b31fef64d9c1a15bc7e8a7e9446b |