Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance testing #990

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

Performance testing #990

wants to merge 17 commits into from

Conversation

RamilCDISC
Copy link
Collaborator

The pull request adds performance Test to the tests folder. The performance test can be run by following command
python tests/PerformanceTest.py -dd path/to/folder/with/datasets -rd path/to/folder/with/rule/files -total_calls 1
Total calls define how many times do you want to execute a rule. The report will be saved in the directory from whic the test file was executed

.flake8 Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the new cli instructions to the readme

README.md Outdated
To execute the performance test, navigate to the root directory of the project and run the following command:

```sh
python tests/PerformanceTest.py -dd <DATASET_DIRECTORY> -rd <RULES_DIRECTORY> -total_calls <NUMBER_OF_CALLS> -od <OUTPUT_DIRECTORY>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the same as the -d, --data TEXT and -lr, --local_rules TEXT args in the validate command, it would be good to use the same arg names.

README.md Outdated

This repository includes a performance testing script located in the `tests` folder under the filename `PerformanceTest.py`. The script is designed to evaluate the execution time of rules against datasets by running multiple test iterations.

### Running the Performance Test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the next header should be nested under the Performance Testing header. IOW, use 4 #

README.md Outdated
```
### Performance Test Command-Line Flags

- **`-dd` (Dataset Directory)**: The directory containing the dataset files in `.json` or `.xpt` format.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format the documentation similar to the existing documentation. For example, use a code block for the args

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants