-
Notifications
You must be signed in to change notification settings - Fork 102
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
[MAINTENANCE] Ajout de l'évaluation de performance des routes dans GeoNature #2896
Conversation
21c9189
to
ab463af
Compare
e673572
to
a36d6b4
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2896 +/- ##
========================================
Coverage 78.53% 78.53%
========================================
Files 89 89
Lines 7236 7236
========================================
Hits 5683 5683
Misses 1553 1553
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
7b66d7a
to
93be69f
Compare
817ed04
to
d6802b4
Compare
3b3c50d
to
251fa1d
Compare
32db5f0
to
d02e259
Compare
2c2fc50
to
f966b7b
Compare
265ab0d
to
f5d7190
Compare
Add a fixture to activate profiling of each SQL query executed and store the results into a csv.
…te tests per module + kwargs can now use CLater
f5d7190
to
e77cd83
Compare
This PR includes perfomance evaluation of specific routes in GeoNature backend. We use
pytest-benchmark
module to compute and store execution time of a designated python function. To automate the generation of pytest function to run a benchmark on a route, we designed a class nameBenchmarkTest
.TODO LIST:
Flask routes included in the benchmark
First results
Synthese routes results
Occhab routes resuts
Occtax routes results
How to compare with previous benchmark
--benchmark-compare-fail
allows to indicate the condition of non-failure--benchmark-compare
is the JSON files storing the last stable performancesTo store the JSON containing the last accepted performance, we can use dedicated online storage like
http://geonature.fr/data
.