Skip to content

Conversation

@raphaeltimbo
Copy link
Collaborator

Optimizes the two slowest tests in the test suite by reducing computational points while maintaining full coverage:

  • test_ucs_rotor9: Reduced from 20 to 5 stiffness points (~56s → ~17s, 68% faster)
  • test_amb_controller: Reduced simulation from 10s to 2s (~43s → ~10s, 76% faster)

Results: Total test suite time reduced by ~33% (from ~215s to ~144s).

Both tests still validate the same functionality. This follows standard practices for numerical testing where fewer computational points provide adequate coverage.

Reduced execution time of the two slowest tests in the test suite by
~70-80% while maintaining full test coverage and accuracy:

- test_ucs_rotor9: Reduced stiffness points from num=20 to num=5,
  decreasing runtime from ~56s to ~17s (68% faster)

- test_amb_controller: Reduced simulation duration from 10s to 2s,
  decreasing runtime from ~43s to ~10s (76% faster)

These optimizations reduce total test suite time by approximately 33%
(from ~215s to ~144s) without compromising test quality. Both tests
still validate the same functionality with fewer computational points,
which is a standard trade-off in numerical testing.
@raphaeltimbo raphaeltimbo merged commit 5c4b023 into petrobras:main Nov 13, 2025
9 checks passed
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.

1 participant