-
Notifications
You must be signed in to change notification settings - Fork 14
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
base: main
Are you sure you want to change the base?
Performance testing #990
Conversation
tests/PerformanceTest.py
Outdated
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
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