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

FR: Support constant/user-supplied data #20

Open
znewman01 opened this issue Jan 28, 2021 · 0 comments
Open

FR: Support constant/user-supplied data #20

znewman01 opened this issue Jan 28, 2021 · 0 comments

Comments

@znewman01
Copy link

znewman01 commented Jan 28, 2021

Thanks for your work on this tool!

I'd like to be able to draw an extra line on the plots generated by cargo criterion. A couple use cases I can imagine:

  • I know some theoretical maximum performance that I'm trying to get close to (why I bring it up). For example, my function processes something at X bytes/s, and my CPU is capable of Y bytes/s. I'd like to get a sense in the combined plots of how close I am.

    For this, I'd just like to provide a single throughput rate and have a straight line drawn on a (hypothetical) throughput plot.

  • I have some objective I'm trying to hit (timeout, etc.).

    This would be a horizontal line on a benchmark; again, I'd like to just provide a number.

Vaguely related to #9, #10.

Potential workarounds:

  • Add a "comparison function" sleeps for the appropriate time. I tried this and it's really noisy (not shocking).
  • Hand-generate the data and sticking it in the appropriate location in target/criterion. I'm thinking about doing this.
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

1 participant