mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
For every ref tests actual and expected screenshots are taken. These screenshots are only needed while the individual test executes. However, they are never freed during the run, leading to a continuous increase in memory usage of the test runner while executing ref tests. With the number of ref tests growing, this currently amounts to nearly 3 GB of uncompressed bitmap data being held in memory. Lets avoid that by clearing the screenshot data at the end of each test. With this change applied, the memory usage of test-web stays stable and below 100 MB for the entire test run.
1.7 KiB
1.7 KiB