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

Feature Request: Show time required to finish #1021

Closed
deadcoder0904 opened this issue Jan 29, 2018 · 17 comments · Fixed by #5468
Closed

Feature Request: Show time required to finish #1021

deadcoder0904 opened this issue Jan 29, 2018 · 17 comments · Fixed by #5468

Comments

@deadcoder0904
Copy link
Contributor

Like npm prints time at the end of npm install, it would be cool to see how much time pnpm requires to finish

@DanielRuf
Copy link
Contributor

Would like to see this too.
As I often let them run in different tabs and need to know how long they take even if we have the local caches to know if I have to optimize a few things.

@zkochan
Copy link
Member

zkochan commented Jul 2, 2018 via email

@DanielRuf
Copy link
Contributor

I wonder if it makes sense to print the time if it was faster than 2-3

For me it is always useful and any information about this is crucial to know if there are too many packages or any issues and I just see it after switching to the tab. So I can also compare the results with and without filled cache.

@deadcoder0904
Copy link
Contributor Author

I think you should show if its more than a second so as to not deter UX but also people care about seconds now

You see all those Twitter threads where people complaining VSCode opens up slow (it only takes 3-5 seconds) 😂 so you get the point, people care if anything greater than a second. Still it wouldn't hurt if you show in decimal point like 3.5s or 0.7s

@DanielRuf
Copy link
Contributor

I think you should show if its more than a second so as to not deter UX but also people care about seconds now

You see all those Twitter threads where people complaining VSCode opens up slow (it only takes 3-5 seconds) 😂 so you get the point, people care if anything greater than a second. Still it wouldn't hurt if you show in decimal point like 3.5s or 0.7s

Especially WPO. Everything above 1s, especially 2-5 seconds feels like there is something happening (perceived performance and so on).

Definitely useful if more than 1 second.

@zkochan
Copy link
Member

zkochan commented Jul 2, 2018

ok then. If it is more than 1 second, it will be printed out. Seems like it will take less than a second only when everything is up-to-date (https://github.com/pnpm/node-package-manager-benchmark)

@zkochan zkochan pinned this issue Dec 25, 2018
@zkochan zkochan changed the title Feature Request: Show time required to download Feature Request: Show time required to finish Dec 25, 2018
@zkochan zkochan unpinned this issue Mar 15, 2019
@shellscape
Copy link
Contributor

Ran into needing this today. Subtask times would also be useful. We're measuring metrics of different deployment methods today.

@cat-walk
Copy link

Hope for support, it has been 4 years...

@shellscape
Copy link
Contributor

@zkochan how heavy a lift would this be to implement? If you can point me in the right direction, I can try adding it

@zkochan zkochan self-assigned this Oct 9, 2022
zkochan added a commit that referenced this issue Oct 9, 2022
@zkochan
Copy link
Member

zkochan commented Oct 9, 2022

Here is a PR: #5468

zkochan added a commit that referenced this issue Oct 9, 2022
@zkochan zkochan added this to the v7.13 milestone Oct 9, 2022
@shellscape
Copy link
Contributor

@zkochan would adding run here (https://github.com/pnpm/pnpm/pull/5468/files#diff-21662b58f1e2bb7d4b341b32cf53f0420886668b78f2c19a5a8bd8e56dc3fd9aR27) allow the same output for pnpm run X? at the moment we've got time littered all over our package scripts, would be happy to submit a PR to add that.

side question: what would be the proper place to add this for pre and post scripts with the enable-pre-post-scripts setting enabled?

@matthew-dean
Copy link

I would love to see this added to run

@matthew-dean
Copy link

@shellscape I wish you had mentioned what tool you use to time scripts 😢

@shellscape
Copy link
Contributor

the bash time command

@matthew-dean
Copy link

@shellscape Thanks! I found it after trying for a long time to find an NPM script and then eventually presuming their must be something built-in if no one had solved in in the module space.

@magoz
Copy link

magoz commented Jan 8, 2023

Showing execution time for run would be awesome. Any chance of this happening, @zkochan?

@zkochan
Copy link
Member

zkochan commented Jan 9, 2023

I am not sure it is a good idea because the output of the script may be analysed by some tools.

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

Successfully merging a pull request may close this issue.

7 participants