taskipy
taskipy copied to clipboard
Add option to print out execution time of tasks
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 --
Hey! Thanks for your input. This sounds like a really nice feature. Will you be willing to contribute?
I'd love to! I'll draft up a PR in the next few days 🚀