For example, the pyDeltaRCM model is so slow.
We want to figure out where is the potential improvement.
So we need to test each function’s performance, i.e., find what are the most time-cost functions/lines.
In terminal, we can use the following command:
python -m cProfile -s cumulative run_pyDeltaRCM.py
Then we will see:
It is useful to improve the code to save much more time.