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

Histogram title customization #216

Open
adeak opened this issue Apr 17, 2022 · 0 comments
Open

Histogram title customization #216

adeak opened this issue Apr 17, 2022 · 0 comments

Comments

@adeak
Copy link

adeak commented Apr 17, 2022

I noticed that the histogram title always looks something like this:

example histogram from the docs

Speaking of pedantic, I find "speed" with units of time surprising :) Beyond pedantry I would expect "larger speed" meaning faster, while "larger time interval" meaning slower.

Looking at the implementation the "Speed in" prefix seems hard-coded:

def make_histogram(output_prefix, name, benchmarks, unit, adjustment):
if name:
path = "{0}-{1}.svg".format(output_prefix, slugify(name))
title = "Speed in {0} of {1}".format(TIME_UNITS[unit], name)
else:
path = "{0}.svg".format(output_prefix)
title = "Speed in {0}".format(TIME_UNITS[unit])

Would it be possible to allow some customization of the prefix? I would like to change it to something like "Runtime in {0}".

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