Skip to content

Memory usage increases rapidly as the number of tests grows #10605

@Lucas-C

Description

@Lucas-C

Hi !

I am witnessing this memory usage increase on fpdf2, using memunit: py-pdf/fpdf2#641
A contributor also mentioned that it was reported on StackOverflow some years ago:
https://stackoverflow.com/questions/20900380/py-test-excessive-memory-usage-with-large-number-of-tests

In short: for a tests suite with ~1000 unit tests, I have witnessed an increase in memory usage of more than 10MB for 40 unit tests added.

Is this surprising to you, or expected?

And secondly, could there be optimizations to make, in pytest or in my tests suite, in order to lower this memory usage?

I have searched the issues & discussions history about this but found nothing anwering those questions:

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: help wanteddevelopers would like help from experts on this topictype: performanceperformance or memory problem/improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions