A package to stress one or more cores
stressypy uses the unix package stress to stress a certain number of cpus for a certain amount of time, as specified by the user. It creates JobBlock objects which contain pertinent information for using these stress loads to test queueing algorithms.
JobBlock Attributes:
The JobBlock class is used to store any function and its cpu width and time height.
instance attributes
n_cpu: number of cpus being stressed
t_run: the time it will take to run the job
func: the function the block is storing
func_args: the arguments for the function the block is storing
job: a combination of the func and arg to return the complete job that the block should execute
attribute type |
description |
|---|---|
input |
n_cpu: number of cpus being stressed |
input |
t_run: the time it will take to run the job |
set with set_job() |
func: the function the block is storing |
set with set_job() |
func_args: the arguments for the function the block is storing |
calculated |
job: a combination of the func and arg to return the complete job that the block should execute |
Installation
stressypy can be installed with pip install stressypy
or cloned manually and setup with python setup.py install
stressypy is dependent on the stress unix package. Make sure you have it installed.
Unix Distro |
Command |
|---|---|
Debian |
sudo apt-get install stress |
Arch Linux |
pacman -S stress |
Directions
stressypy runs using the command stressy stress with the number of cpus and time passed as arguments
stressy stress 1 1 stresses 1 core for 1 second
stressy stress 7 3 stresses 7 cores for 3 second
Metadata
Release files for stressypy 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stressypy-0.0.12.tar.gz | 3.1 kB | Without provenance | Details for stressypy-0.0.12.tar.gz |
Release files / stressypy-0.0.12.tar.gz
| Download URL | stressypy-0.0.12.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
909ab29e0c1da4cac1ac3c3c9d0a21fe2f9b431990d9f860685c6734cab80242
|
|
BLAKE2b-256 checksum How to use checksums |
7b64bb90bc9836c1dca8ad13e9b8d212b55fda6a7b4f6d72a3fbabb469fbaff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for stressypy 0.0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.