Firstly, you must optimize your resource from python, framework (Django) to database.
- Habits to improve python programs.
- Optimizing slow django rest framework.
- Django Performance and optimization
After finishing your optimization, you should meter your the results.
There are the most of parameter’s when figuring out performance API.
- Deviation
- Median
- Throughput
The Throughput is the most important parameter. It represents the ability of the server to handle a heavy load. The higher the Throughput is, the better is the server performance.
The deviation is shown in red — it indicates the deviation from the average. The smaller the better.
Tool Test:
jMeter: https://jmeter.apache.org/
How to install jMeter on Ubuntu 16.04 : https://www.linuxhelp.com/how-to-install-apache-jmeter-in-ubuntu-16-04
How to use it: https://www.guru99.com/jmeter-performance-testing.html