Python API Performance Testing Basics
Author: Newtum
This example introduces the basics of API performance testing in Python by measuring response times over multiple requests. For serious load testing, dedicated tools like Locust or JMeter are recommended.
Simple Performance Measurement
We can make a series of requests in a loop and record the `elapsed` time for each one. The `response.elapsed` attribute is a `timedelta` object that measures the time between sending the request and receiving the full response.
