phetsims / collision-lab

"Collision Lab" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
6 stars 4 forks source link

Memory leak testing #147

Closed brandonLi8 closed 4 years ago

brandonLi8 commented 4 years ago

For #146, test for memory leaks on a built version. This sim does very little dynamic memory allocation, so I'm not anticipating problems.

brandonLi8 commented 4 years ago

Did the test on a locally built version with ?fuzz only.

Results: Minutes Heap Size (MB)
0 35.6
5 42.6
10 44.0
15 44.5
20 44.8
25 45.2
30 45.7

The memory footprint is smaller than expected (much less than vector addition!) for a 4 screen sim! There are also no signs of memory leaks!

Closing.