Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add performance checks #539

Closed
wants to merge 9 commits into from

Conversation

rmatsum836
Copy link
Collaborator

Addresses #473. The tests mostly check that writers are performant; the system size and timeout values could probably be tweaked, I based them off simple profiling I did with time.

I also made a note to check loading a FF XML once #521 is addressed. Should also add checks once foyer integrations is accomplished.

I'm open to any other suggestions for tests we could add.

@codecov
Copy link

codecov bot commented Apr 28, 2021

Codecov Report

Patch coverage has no change and project coverage change: -4.16% ⚠️

Comparison is base (615fd29) 92.82% compared to head (53fa3b1) 88.67%.

❗ Current head 53fa3b1 differs from pull request most recent head a83e9fb. Consider uploading reports for the commit a83e9fb to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #539      +/-   ##
==========================================
- Coverage   92.82%   88.67%   -4.16%     
==========================================
  Files          66       56      -10     
  Lines        6845     4415    -2430     
==========================================
- Hits         6354     3915    -2439     
- Misses        491      500       +9     

see 65 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@jennyfothergill jennyfothergill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome and I think we should implement something similar in other mosdef packages. :)

I wonder if there is a way to implement something like pytest-profiling to check if a test is slower/faster from one commit to the next? 🤔 Just a thought!

Copy link
Collaborator

@justinGilmer justinGilmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome idea! LGTM!

@daico007 daico007 marked this pull request as ready for review September 25, 2023 15:29
@daico007 daico007 changed the base branch from old_main to main September 25, 2023 15:29
@pytest.mark.timeout(20)
def test_from_mbuild_performance(self, n_ar_system):
cmpd = n_ar_system(n_sites=50000)
top = from_mbuild(cmpd)

Check notice

Code scanning / CodeQL

Unused local variable

Variable top is not used.
@@ -0,0 +1,48 @@
import pytest

from gmso.core.atom import Atom

Check notice

Code scanning / CodeQL

Unused import

Import of 'Atom' is not used.
import pytest

from gmso.core.atom import Atom
from gmso.core.atom_type import AtomType

Check notice

Code scanning / CodeQL

Unused import

Import of 'AtomType' is not used.

from gmso.core.atom import Atom
from gmso.core.atom_type import AtomType
from gmso.core.topology import Topology

Check notice

Code scanning / CodeQL

Unused import

Import of 'Topology' is not used.
@daico007 daico007 closed this Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants