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

New performance profiler and updates to test data generation #110

Merged

Conversation

johrenberger
Copy link
Contributor

test_performance_profiler.py - Constructed a new performance test leveraging cProfile to capture metrics, generates a polars friendly CSV and prints the first 10 lines in console. Shifted execution directly into the Validator class vs spinning up the app for more detailed output.

csv_random_data_generate_at_scale.py - experimented with polars and it was able to generate the test data much more efficiently. The code is a bit more compressed but I saw a nice performance boost in upfront test file generation.

Removed the following files as they are out of date:
tests/fake_focuses.csv
tests/focus_validator_performance_test.py
tests/samples/csv_random_data_generator.py

Signed-off-by: Justin Ohrenberger <justinohrenberger@gmail.com>
Signed-off-by: Justin Ohrenberger <justinohrenberger@gmail.com>
…issue

Signed-off-by: Justin Ohrenberger <justinohrenberger@gmail.com>
Signed-off-by: Justin Ohrenberger <justinohrenberger@gmail.com>
@varunmittal91 varunmittal91 merged commit c58c2b0 into finopsfoundation:main Jan 13, 2024
6 checks passed
mike-finopsorg pushed a commit that referenced this pull request Jun 6, 2024
Signed-off-by: Justin Ohrenberger <justinohrenberger@gmail.com>
mike-finopsorg pushed a commit that referenced this pull request Jun 6, 2024
Signed-off-by: Justin Ohrenberger <justinohrenberger@gmail.com>
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