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

Add support for displaying median benchmarks #203

Merged
merged 2 commits into from
Jun 10, 2016
Merged

Conversation

str4d
Copy link
Contributor

@str4d str4d commented Jun 9, 2016

Includes:

  • A new type field to benchmarks to distinguish between mean and median data.
  • New result fields for storing Q1 and Q3.
  • Toggles for displaying quartile and extrema bands on median benchmarks.

See this graph for an example.

q3 = res.q3
results.append(
[
res.revision.date.strftime('%Y/%m/%d %H:%M:%S %z'),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could factor out the data formatting somewhere common to both data_types. Even a method on revision date_formatted() or similar

@tobami
Copy link
Owner

tobami commented Jun 9, 2016

Wow, this looks awesome! Can you please add a screenshot to the PR description? Even better would be to expand codespeed/fixtures/testdata.json (or codespeed/fixtures/testdata.json) so the sample data shows the new type of benchmark data.

In any case it looks great!

@tobami
Copy link
Owner

tobami commented Jun 9, 2016

Another thought: it would still be useful to be able to show min/max even if the benchmark is of type mean. Could we still show the checkbox even in that case?

@str4d
Copy link
Contributor Author

str4d commented Jun 9, 2016

It's certainly possible, but it would either require duplicating code or some more refactoring. Probably duplicated code would be easiest, since otherwise the parsing code would not be single-pass, which would be less efficient for larger datasets.

It may be easier to do that once this and #204 are merged (so then the refactor can also tidy up the general handling of extra options). I don't personally need it, so I can't promise I'd get it done (because I can't put company time to it), but if done with duplication it's a simple-enough change that it shouldn't take me long.

@tobami
Copy link
Owner

tobami commented Jun 10, 2016

Al-right! Let's get it merged then, thanks.

@tobami tobami merged commit b1ca8fa into tobami:master Jun 10, 2016
@str4d str4d deleted the median branch August 22, 2017 21:11
@str4d str4d mentioned this pull request Aug 23, 2017
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

Successfully merging this pull request may close these issues.

2 participants