Skip to content

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

@Timmmm

Description

@Timmmm

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions