A package to aid students of ISCTE in testing their algorithms
Project description
Welcome to Algopyformance
A library created to aid students of ISCTE-IUL to build performance tests for their app. This is the first version so it is still limited and the plotting functionality is not as functional as I wished but improvements are comming soon. I am open to suggestions of features I can add and improvements to my code.
The library uses the Builder pattern to offer a simple and easy to use API to build performance tests. It uses pandas to store the results of the tests, Seaborn to plot the results and matplotlib to show the plot. To build a test you just need to excute the following steps:
- Import the TestStackBuilder from the tests module
- add targets which are functions that you want to execute during the test (you can add multiple but keep in mind that they should contain the same parameters)
- (Optional) If you want to repeat the test multiple times use the repeat method to pass the number of repetitions
- (Optional) if you want to let the TestStackBuilder plot your data you can add the flag to the builder using the do_show_plot. Keep in mind that this feature doesn't work very well and
- Use build to generated a TestStack
- Finally, run the test using the run method
- (Optional) if the plot representation doesn't suit you you can use the output of the run method which is a dataframe of results from the tests to build your own plot using Seaborn or Matplotlib.
Copyright © 2022 Stefan Postolache
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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
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 sp_algopyformance-0.1.0.tar.gz.
File metadata
- Download URL: sp_algopyformance-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4088b10729877bf161ce1636dc858714941d69878212fb0530a8b50db2719766
|
|
| MD5 |
6892b8ccf968f089e7a4eb14765e083c
|
|
| BLAKE2b-256 |
a28b158b438b837f3aabbf25dd3ffaf503f86a2fc6e8cc1e886181865b9e6d7a
|
File details
Details for the file sp_algopyformance-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sp_algopyformance-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26d1591203bde36c72fc9369a8ec24de9064b84103a4e4d826bf894db31a7d5d
|
|
| MD5 |
e00dbdae298e4a74a71a1e810920204b
|
|
| BLAKE2b-256 |
c27e1282a2b66fdfd19cbd9407ec8daf4fccfc474ae0e71bca18413ea8da0034
|