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: get specific program phase time #135

Closed
mikaoP opened this issue Jan 22, 2019 · 1 comment
Closed

Feature request: get specific program phase time #135

mikaoP opened this issue Jan 22, 2019 · 1 comment
Labels
question Further information is requested

Comments

@mikaoP
Copy link

mikaoP commented Jan 22, 2019

A lot of applications have an startup phase where data is initialized before a heavy computation. To get an accurate comparison it would be great if there were some mechanism to get the time only of one part of the program.

@sharkdp
Copy link
Owner

sharkdp commented Jan 26, 2019

Thank you for the feedback.

How would you imagine something like this being implemented?

Hyperfine is designed to measure the full execution time of a program. If you want something more fine-grained, I'd refer you to language-specific micro benchmarking libraries (Google Benchmark for C++, criterion for Rust and Haskell, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants