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

Measure Cockpit App performance with our test framework #20155

Open
jelly opened this issue Mar 11, 2024 · 3 comments
Open

Measure Cockpit App performance with our test framework #20155

jelly opened this issue Mar 11, 2024 · 3 comments

Comments

@jelly
Copy link
Member

jelly commented Mar 11, 2024

In navigator we had a quite slow loading folder overview due to a lot of re-rendering. The only way to found out if the page loaded faster was by manually inspecting performance metrics, something non-reproducible and manual.

Cockpit's testlib should have an easy way to run a test and gather profiling metrics, some things we might want to measure:

  • Memory usage
  • Page load time
  • Interaction time, how responsive is a click(), how long does it take for a click to resolve see for example:

image

Options for measuring performance

@jelly
Copy link
Member Author

jelly commented Mar 15, 2024

  • I want to be able to generate a baseline report (JSON)
  • I maybe want to support adding a contextmanager to the tests to tell the test framework that I want to instrument this part of the test:
with performance_metrics("unique-tag") as f:
    b.click("foo") 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant