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

Track the time taken to run test functions in nargo test and print beside the test output #6727

Closed
TomAFrench opened this issue Dec 6, 2024 · 2 comments · Fixed by #6728
Closed
Assignees

Comments

@TomAFrench
Copy link
Member

Pretty much clear from the title. We currently have no real good way to determine which tests in a package are particularly slow to compile so it would be helpful to have a readout of the time taken for each one.

This would be useful for tracking potential regressions in compilation speed in the noir compiler or when it would be sensible to split up a test into smaller components.

@asterite
Copy link
Collaborator

Do we want to always show the times, or just when a flag is passed?

Also, with many tests it can be hard to spot the slowest ones, so we could list the 10 slowest at the end of the run (maybe if they take more than a threshold, for example 1 second).

@TomAFrench
Copy link
Member Author

I think with a naked nargo test we should only show times for tests which take more than 30s-1min to avoid flooding the console.

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

Successfully merging a pull request may close this issue.

2 participants