I have a Django-app built in API style, and I need benchmark it. I want to use django unitetesting library to build becnhmarks as tests for API endpoints. They will use Django-test-client for querying endpoints and collect data about SQL queries and their timing, and save it somwhere.
Is it sane idea at all? Also I want to see timings for Python code with stacktraces, and see which code causes which SQL queries. Could somebody know approaches to collect such information without modifications in code of app?