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 option to print out execution time of tasks #61

Open
emann opened this issue Apr 26, 2023 · 2 comments
Open

Add option to print out execution time of tasks #61

emann opened this issue Apr 26, 2023 · 2 comments
Assignees

Comments

@emann
Copy link

emann commented Apr 26, 2023

I'm working on trying to optimize some of our CI/CD + compare performance of a couple tools, would be really nice if there was a commandline option to print out how long each task takes to run. Would be more than happy to implement myself if there is interest.

My thinking is something like a --show-execution-time arg or something similar that would print out

<output of lint task>
-- ran task "lint" in 12.34s --

For composed tasks (tasks that call other tasks) it would still print out the execution time per-task, but at the end print the total time to execute i.e. given a task "check: which calls tasks "lint" and "test",

<output of lint task>
-- ran task "lint" in 12.34s --
<output of test task>
-- ran task "test" in 56.78s --
-- ran task "check" in 69.12s --
@illBeRoy
Copy link
Collaborator

illBeRoy commented May 5, 2023

Hey! Thanks for your input. This sounds like a really nice feature. Will you be willing to contribute?

@emann
Copy link
Author

emann commented May 5, 2023

I'd love to! I'll draft up a PR in the next few days 🚀

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

No branches or pull requests

2 participants