-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from DUNE-DAQ/sbhuller/new_scripts
Sbhuller/new scripts
- Loading branch information
Showing
17 changed files
with
505 additions
and
21,479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,41 @@ | ||
# performancetest | ||
|
||
|
||
In `performancetest` users can find all the resources to conduct benchmark and performance tests. Moreover, to process and present the results. In the `docs` folder users will find detailed test explanations, comprehensive instructions on how to execute these tests, and a comprehensive guide on how to effectively process the gathered data. In the `tools` folder the user can find the python3 notebooks and python file with the basic functions needed for creating the reports. | ||
In `performancetest` users can find all the resources to conduct benchmark and performance tests. Moreover, to process and present the results. In the `docs` folder users will find detailed test explanations, comprehensive instructions on how to execute these tests, and a comprehensive guide on how to effectively process the gathered data. In the `tools` folder the user can find the python3 notebooks and Python file with the basic functions needed for creating the reports. | ||
|
||
## Installation | ||
In order to setup your environment, run | ||
|
||
```[bash] | ||
pip install -r requirements.txt | ||
``` | ||
|
||
to install the necessary Python packages. Everytime you login, run | ||
|
||
```[bash] | ||
source setup.sh | ||
``` | ||
|
||
or add this to `env.sh` in your dunedaq workspace. | ||
|
||
## Generating Performance reports | ||
|
||
To generate a performance report the tools `collect_metrics.py` and `generate_performance_report.py` are used. Both tools require a json file as input, which provides metrics about the test and necessary information requiret to retrieve the data. To generate a template json file, run | ||
|
||
```[bash] | ||
collect_metrics.py -g | ||
``` | ||
|
||
which should produce a file called `template_report.json` in your current directory. In this configuration file lists all the information needed and a brief decsription describing each entry. Note that entries with `None` are optional. Once all the information is filled run | ||
|
||
```[bash] | ||
collect_metrics.py -f <name of your json file> | ||
``` | ||
|
||
to collect the dashboard information and format the core utilisation output. The output of this script are csv files for each test and core utilisation file, which are automatically added to your json file under the entries `grafana_data_files` and `core_utilisation_files`, respectively. | ||
|
||
Generate the performance report by running | ||
|
||
```[bash] | ||
generate_performance_report.py -f <name of your json file> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fpdf2==2.7.9 | ||
matplotlib==3.9.2 | ||
pandas==2.2.2 | ||
python-dateutil==2.8.2 | ||
requests==2.25.0 | ||
tabulate==0.9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
PERFORMANCE_TEST_PATH=`realpath $BASH_SOURCE | xargs dirname` | ||
export PERFORMANCE_TEST_PATH | ||
export PATH=$PERFORMANCE_TEST_PATH/tools:$PATH | ||
export PATH=$PERFORMANCE_TEST_PATH/scripts:$PATH | ||
export PATH=$PERFORMANCE_TEST_PATH/tests:$PATH | ||
echo "performance test executables added to PATH" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.