Use PyPy instead of CPython: PyPy is an alternative implementation of Python that uses just-in-time (JIT) compilation to speed up code execution. Use NumPy arrays instead of lists: NumPy is a popular ...
The memory usage of PyPy doesn't ramp up with the requests so it appears to be pre-allocated against the process. It would make sense to run a continued benchmark against different API calls using a ...