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

Ability to measure the speed of part of a command #153

Closed
Timmmm opened this issue Apr 2, 2019 · 1 comment
Closed

Ability to measure the speed of part of a command #153

Timmmm opened this issue Apr 2, 2019 · 1 comment

Comments

@Timmmm
Copy link

Timmmm commented Apr 2, 2019

It would be really cool if hyperfine could scan stdout for magic words that tell it when to start/stop timing. For example if I have a benchmark that loads data from disk and then processes it, I don't really care about the time it takes to load from disk. If I could do this:

auto data = load_from_disk();
std::cout << "HYPERFINE_START\n";
process(data);
std::cout << "HYPERFINE_STOP\n";

That'd be nice!

@sharkdp
Copy link
Owner

sharkdp commented Apr 2, 2019

Thank you for the feedback. Please see #135

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

No branches or pull requests

2 participants