Closed Bug 1212792 Opened 11 years ago Closed 11 years ago

[raptor] Add measurement values and sample size to the JSON output

Categories

(Firefox OS Graveyard :: Gaia::PerformanceTest, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: stas, Assigned: stas)

Details

Attachments

(1 external file)

To enable more uses of the JSON output, it would be helpful to include the raw data and the sample size in the JSON output. Many statistical tests require at least the sample size to properly calculate the degrees of freedom to use.
Attached file Pull request —
Assignee: nobody → stas
Status: NEW → ASSIGNED
Attachment #8671294 - Flags: review?(eperelman)
I can see including the sample size in the JSON, but not sure what including the raw points gets us. We already generate a metrics.ldjson file which contains all the metrics, so presumably I feel like there should just be some glue to put the two together if it's even needed.
Hmm, I was working under the assumption that the JSON output is the "raw" output. You can easily derive all statistics from an array of values, but not the other way around. While it's possible to test a hypothesis using a t-test using the mean, stdev and the sample size, other uses might require other pieces of data. Providing the raw values seems like the most scalable solution to me. Perhaps I could add another output mode called "raw" so that "json" stays relatively concise?
What I mean is, all of the data is already accessible, but right now it is split between 2 "files", if in JSON mode: raptor test coldlaunch --metrics metrics.ldjson --app clock --output json > stats.json ~ ls ... metrics.ldjson stats.json So there is a metrics file which contains all the values, and then the stats.json would contain the stats of that run.
Ah, I see. I was wondering what that file was for :) OK, I'll try to use ldjson for this, thanks!
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Attachment #8671294 - Flags: review?(eperelman)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: