Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 889 Bytes

PERFORMANCE_TESTS.md

File metadata and controls

32 lines (20 loc) · 889 Bytes

Performance tests for the Lagtraj code

The test data required for a quick performance test (5 hour time integration) can de downloaded as follows:

python -m lagtraj.domain.download lagtraj://eurec4a_circle_eul 2020/02/02 2020/02/02

Speed testing

This is done with pyinstrument:

https://pypi.org/project/pyinstrument/0.10.1/

Trajectory creation can be tested with the following command

pyinstrument -m lagtraj.trajectory.create lagtraj://eurec4a_20200202_12_lag

Memory usage

This can be done with python memory profiler

https://pypi.org/project/memory-profiler/

mprof run python -m lagtraj.trajectory.create lagtraj://eurec4a_20200202_12_lag
mprof plot

Memory usage during trajectory creating for the test case has so far been about 175MB.