Skip to content

Performance overhead #26

@peterjc

Description

@peterjc

Testing with Biopython (which recently finished applying black to the entire code base), numbers on a multi-core Mac:

Black alone (best of three)

$ time black --check Bio/ BioSQL/ Tests/ Scripts/ Doc/
All done! ✨ 🍰 ✨
559 files would be left unchanged.

real	0m0.618s
user	0m0.484s
sys	0m0.129s

Using flake8 with assorted plugins, but without flake8-black (best of three)

$ time flake8 Bio/ BioSQL/ Tests/ Scripts/ Doc/

real	0m56.956s
user	4m1.520s
sys	0m3.470s

Adding the above together gives us an expected run time for running black via flake8.

So, same setup, but with flake8-black (best of three)

$ time flake8 Bio/ BioSQL/ Tests/ Scripts/ Doc/

real	1m36.095s
user	6m51.635s
sys	0m5.928s

That's an overhead of about 40s real and well over 2m user time - not good!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions