Closed
Bug 754448
Opened 14 years ago
Closed 14 years ago
allow for dromaeo tests to report raw results vs internally calculated mean
Categories
(Testing :: Talos, defect)
Testing
Talos
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jmaher, Assigned: jmaher)
Details
Attachments
(1 file, 2 obsolete files)
|
4.12 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
In dromaeo tests, we generate a single number per page. This is calculated as a mean of an internal harness to dromaeo.
| Assignee | ||
Comment 1•14 years ago
|
||
Comment 2•14 years ago
|
||
Comment on attachment 623297 [details] [diff] [review]
raw results from dromaeo (1.0)
var title, testName, testID, testSummary = {} , testSummaryNum = {}, maxTotal = 0, maxTotalNum = 0;
+ var meanValues = [];
var nameDone = {};
Indentation?
+// tpRecordTime( summary );
Probably should just delete
This looks good. Not sure if it will affect existing numbers.
Attachment #623297 -
Flags: review?(jhammel) → review+
| Assignee | ||
Comment 3•14 years ago
|
||
Attachment #623297 -
Attachment is obsolete: true
Attachment #624171 -
Flags: review+
| Assignee | ||
Comment 4•14 years ago
|
||
this is a new patch that reports correct numbers to match up with our current system. What is odd is that sometimes the tests will run more iterations to collect additional data points, so there is a variable amount of data which will be uploaded as raw data (not just 25 data points, etc...)
Attachment #624171 -
Attachment is obsolete: true
Attachment #630262 -
Flags: review?(jhammel)
Comment 5•14 years ago
|
||
Comment on attachment 630262 [details] [diff] [review]
working dromaeo raw results patch including proper values (2.0)
+ num_tests = len(series) / 5
+ for iter in range(0, num_tests):
+ total += math.log(mean(series[iter*5:(iter+1)*5]))
What is this magical number 5? It should at least be explained in a comment, if not made a function argument
var title, testName, testID, testSummary = {} , testSummaryNum = {}, maxTotal = 0, maxTotalNum = 0;
+ var meanValues = [];
var nameDone = {};
Indentation
Outside of the weird taking the mean of 5 at a time factor, I'd rather make this more generic, e.g.:
def logarithmic_norm(series):
"""Christina could probably give us a better name for this"""
total = 0.
for value in series:
total += math.log(value)
return math.exp(total/float(len(series)))
Is it possible to get into this form? I'll admit I don't really understand the "5" here.
| Assignee | ||
Comment 6•14 years ago
|
||
the magic number 5 is the number of replicates per run for that page which is collected. I would rather comment than make it a parameter.
in regards to fitting into your format, we need to take the mean of 5 values at a time, then log_smooth them. So if series had the means already, that would work.
Comment 7•14 years ago
|
||
Comment on attachment 630262 [details] [diff] [review]
working dromaeo raw results patch including proper values (2.0)
I suppose this is fine then, though I can't necessarily saw I'm a fan of the magic.
Attachment #630262 -
Flags: review?(jhammel) → review+
| Assignee | ||
Comment 8•14 years ago
|
||
landed after cleaning up and confirming via irc:
http://hg.mozilla.org/build/talos/rev/170c100911b6
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•