Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Bug 1142680 - Write a compare-talos equivalent - optimizations and bar graphs. r=wlach #490

Closed
wants to merge 7 commits into from

Conversation

jmaher
Copy link

@jmaher jmaher commented Apr 27, 2015

optimizations for:

  • loading one set of data if we have the same branch
  • only requesting the amount of data that is needed (not defaulting to 30 days)
  • batch up network requests (20 signatures at a time) to reduce network requests.
  • add a bar chart view to overview and subtests (helps point out larger offenders.

tested with:
http://localhost:8000/app/perf.html#/compare?originalProject=try&originalRevision=76b999af7321&newProject=try&newRevision=59b75c0e8e97

optimizations:

  • instead of 314+ network requests, we have 13 for the above link :)

Review on Reviewable

timeRange = Math.round(now - timeRange);

//now figure out which predefined set of data we can query from
var intervals = [86400, 604800, 1209600, 2592000, 5184000, 7776000];
Copy link

Choose a reason for hiding this comment

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

So this is already used here: https://github.com/mozilla/treeherder-ui/blob/master/webapp/app/js/graphs.js#L16

We should create an angular value for this so we can reuse this information here, there, and elsewhere. The keys should be the human readable name, the value the integer values we send to treeherder/perfherder (for cases we just need the values, just get the values). Some examples here: https://github.com/jmaher/treeherder-ui/blob/subtest/webapp/app/js/values.js

@jmaher
Copy link
Author

jmaher commented Apr 28, 2015

we can close this PR as #491 is used with a real branch, etc.

@jmaher jmaher closed this Apr 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants